Method: Glimmer::DataBinding::Shine#<=
- Defined in:
- lib/glimmer/data_binding/shine.rb
#<=(other) ⇒ Object
41 42 43 44 45 46 47 48 49 50 51 52 53 |
# File 'lib/glimmer/data_binding/shine.rb', line 41 def <=(other) if other.is_a?(Array) args_clone = other.clone if args_clone.last.is_a?(Hash) args_clone.last[:read_only] = true else args_clone << {read_only: true} end @parent.content { send(@parent_attribute, bind(*args_clone)) } end end |