Module: Glimmer::DataBinding::Observable
- Included in:
- ModelBinding, ObservableArray, ObservableHashable
- Defined in:
- lib/glimmer/data_binding/observable.rb
Instance Method Summary collapse
-
#add_observer(observer, property_or_properties = nil) ⇒ Object
TODO rename methods to observe/unobserve.
-
#inspect ⇒ Object
Overriding inspect to avoid printing very long observer hierarchies.
- #remove_observer(observer, property_or_properties = nil) ⇒ Object
Instance Method Details
#add_observer(observer, property_or_properties = nil) ⇒ Object
TODO rename methods to observe/unobserve
28 29 30 |
# File 'lib/glimmer/data_binding/observable.rb', line 28 def add_observer(observer, property_or_properties=nil) raise Error, 'Not implemented!' end |
#inspect ⇒ Object
Overriding inspect to avoid printing very long observer hierarchies
37 38 39 |
# File 'lib/glimmer/data_binding/observable.rb', line 37 def inspect "#<#{self.class.name}:0x#{self.hash.to_s(16)}>" end |
#remove_observer(observer, property_or_properties = nil) ⇒ Object
32 33 34 |
# File 'lib/glimmer/data_binding/observable.rb', line 32 def remove_observer(observer, property_or_properties=nil) raise Error, 'Not implemented!' end |