Module: Glimmer::DataBinding::Observable

Included in:
ModelBinding, ObservableArray, ObservableHashable
Defined in:
lib/glimmer/data_binding/observable.rb

Instance Method Summary collapse

Instance Method Details

#add_observer(observer, property_or_properties = nil) ⇒ Object

TODO rename methods to observe/unobserve

Raises:



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

#inspectObject

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

Raises:



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