Class: Bowline::Observable::Event
Instance Attribute Summary collapse
-
#callback ⇒ Object
readonly
Returns the value of attribute callback.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
- #call(*args) ⇒ Object
-
#initialize(observable, type, callback = nil) ⇒ Event
constructor
A new instance of Event.
- #remove ⇒ Object
Constructor Details
#initialize(observable, type, callback = nil) ⇒ Event
Returns a new instance of Event.
18 19 20 21 22 |
# File 'lib/bowline/observer.rb', line 18 def initialize(observable, type, callback = nil) @observable = observable @type = type @callback = callback end |
Instance Attribute Details
#callback ⇒ Object (readonly)
Returns the value of attribute callback.
17 18 19 |
# File 'lib/bowline/observer.rb', line 17 def callback @callback end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
17 18 19 |
# File 'lib/bowline/observer.rb', line 17 def type @type end |