class Object
Public Instance Methods
attribute=(value)
click to toggle source
# File lib/motion_bindable/strategy.rb, line 58 def attribute=(value) object.send(:"#{attr_name.to_s}=", value) end
initial_state()
click to toggle source
# File lib/motion_bindable/strategy.rb, line 62 def initial_state # We try to find an existing value and fill it up if attribute.nil? && respond_to?(:on_bound_change) on_bound_change(bound_value) elsif respond_to?(:on_object_change) on_object_change(object_value) end end
start_listen()
click to toggle source
# File lib/motion_bindable/strategy.rb, line 71 def start_listen start_observing if respond_to?(:start_observing) start_observing_bound if respond_to?(:start_observing_bound) start_observing_object if respond_to?(:start_observing_object) end