File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ test.my_event_one.add_observer(object1) # changes will call object1.update
45
45
test .my_event_one.add_observer(object2, :log ) # changes will call object2.log
46
46
test .my_event_one.change # mark as changed, can be called multiple times
47
47
test .my_event_one.notify_observers(* args) # run the observers methods with given args
48
+ test .my_event_one.change_and_notify(* args) # mark as changed and run the observers methods with given args
48
49
```
49
50
50
51
## Writing your own notifier
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ module Ruby
8
8
# Helpers for multiple publish/subscribe hooks
9
9
module Hooks
10
10
# Rubygems version of Ruby::Hooks
11
- VERSION = "1.0 .0"
11
+ VERSION = "1.1 .0"
12
12
end
13
13
end
14
14
You can’t perform that action at this time.
0 commit comments