Class: Glimmer::DataBinding::ObservableArray::Notifier
- Inherits:
-
Object
- Object
- Glimmer::DataBinding::ObservableArray::Notifier
- Includes:
- Glimmer::DataBinding::Observer
- Defined in:
- lib/glimmer/data_binding/observable_array.rb
Instance Attribute Summary collapse
-
#observable_array ⇒ Object
readonly
Returns the value of attribute observable_array.
Instance Method Summary collapse
- #call(new_value = nil, *extra_args) ⇒ Object
-
#initialize(observable_array) ⇒ Notifier
constructor
A new instance of Notifier.
Methods included from Glimmer::DataBinding::Observer
#add_dependent, #compact_args, #dependents, #dependents_for, #observe, proc, #registration_for, #registrations, #remove_dependent, #unobserve, #unobserve_all_observables, #unobserve_dependents_with_observable
Constructor Details
#initialize(observable_array) ⇒ Notifier
Returns a new instance of Notifier.
39 40 41 |
# File 'lib/glimmer/data_binding/observable_array.rb', line 39 def initialize(observable_array) @observable_array = observable_array end |
Instance Attribute Details
#observable_array ⇒ Object (readonly)
Returns the value of attribute observable_array.
37 38 39 |
# File 'lib/glimmer/data_binding/observable_array.rb', line 37 def observable_array @observable_array end |
Instance Method Details
#call(new_value = nil, *extra_args) ⇒ Object
43 44 45 |
# File 'lib/glimmer/data_binding/observable_array.rb', line 43 def call(new_value=nil, *extra_args) @observable_array.notify_observers end |