class MotionBindable::Strategies::UILabel
Public Instance Methods
observeValueForKeyPath(_, ofObject: _, change: _, context: _)
click to toggle source
# File lib/strategies/ui_label.rb, line 14 def observeValueForKeyPath(_, ofObject: _, change: _, context: _) on_object_change end
on_object_change(new = nil)
click to toggle source
# File lib/strategies/ui_label.rb, line 9 def on_object_change(new = nil) @bound.text = (new || attribute) @bound.setNeedsDisplay end
start_observing_object()
click to toggle source
# File lib/strategies/ui_label.rb, line 5 def start_observing_object observe_object { |_, new| on_object_change(new) } end
unbind()
click to toggle source
Calls superclass method
# File lib/strategies/ui_label.rb, line 18 def unbind stop_observe_object super end