Module: KO::Properties::InstanceMethods
- Defined in:
- lib/ko/properties.rb
Instance Method Summary collapse
Instance Method Details
#bind(prop_name, from, from_prop_name) ⇒ Object
32 33 34 35 36 37 |
# File 'lib/ko/properties.rb', line 32 def bind(prop_name, from, from_prop_name) setter = method("#{prop_name}=") setter.call(from.send(from_prop_name)) from.send("#{from_prop_name}_changed").connect(setter) end |
#properties ⇒ Object
39 |
# File 'lib/ko/properties.rb', line 39 def properties = @properties ||= {} |