Class: MotionBindable::Strategies::UITextField
- Inherits:
-
MotionBindable::Strategy
- Object
- MotionBindable::Strategy
- MotionBindable::Strategies::UITextField
- Defined in:
- lib/strategies/ui_text_field.rb
Instance Attribute Summary
Attributes inherited from MotionBindable::Strategy
Instance Method Summary collapse
Methods inherited from MotionBindable::Strategy
#attribute, #attribute=, #bind, find_by_reference, #initialize, #refresh, register_strategy
Constructor Details
This class inherits a constructor from MotionBindable::Strategy
Instance Method Details
#on_bind ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/strategies/ui_text_field.rb', line 5 def on_bind if bound.delegate.is_a? ::MotionBindable::DelegateProxy bound.delegate.delegates << self else bound.delegate = ::MotionBindable::DelegateProxy.new( bound.delegate, self ) end update_attribute end |
#textFieldDidEndEditing(_) ⇒ Object
18 19 20 |
# File 'lib/strategies/ui_text_field.rb', line 18 def textFieldDidEndEditing(_) update_attribute end |