Module: Glimmer::DataBinding::ObservableWidget

Defined in:
lib/glimmer/data_binding/observable_widget.rb

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method, *args, &block) ⇒ Object

TODO see if it is worth it to eliminate duplication of method_missing from WidgetProxy using a module



28
29
30
31
32
33
34
35
# File 'lib/glimmer/data_binding/observable_widget.rb', line 28

def method_missing(method, *args, &block)
  method_name = method.to_s
  if can_handle_observation_request?(method_name)
    handle_observation_request(method_name, &block)
  else
    super
  end
end