Class: OrganizzeForm::Row
- Inherits:
-
Object
- Object
- OrganizzeForm::Row
- Defined in:
- lib/organizze-form/row.rb
Instance Attribute Summary collapse
-
#key ⇒ Object
Returns the value of attribute key.
-
#type ⇒ Object
Returns the value of attribute type.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
Instance Attribute Details
#key ⇒ Object
Returns the value of attribute key.
3 4 5 |
# File 'lib/organizze-form/row.rb', line 3 def key @key end |
#type ⇒ Object
Returns the value of attribute type.
3 4 5 |
# File 'lib/organizze-form/row.rb', line 3 def type @type end |
#value ⇒ Object
Returns the value of attribute value.
3 4 5 |
# File 'lib/organizze-form/row.rb', line 3 def value @value end |
Instance Method Details
#row_type ⇒ Object
5 6 7 8 9 |
# File 'lib/organizze-form/row.rb', line 5 def row_type @row_type ||= row_type_class.new.tap do |rt| rt.row = WeakRef.new(self) end end |
#setup_cell ⇒ Object
11 12 13 |
# File 'lib/organizze-form/row.rb', line 11 def setup_cell row_type.setup_call end |