Class: OrganizzeForm::Row

Inherits:
Object
  • Object
show all
Defined in:
lib/organizze-form/row.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#keyObject

Returns the value of attribute key.



3
4
5
# File 'lib/organizze-form/row.rb', line 3

def key
  @key
end

#typeObject

Returns the value of attribute type.



3
4
5
# File 'lib/organizze-form/row.rb', line 3

def type
  @type
end

#valueObject

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_typeObject



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_cellObject



11
12
13
# File 'lib/organizze-form/row.rb', line 11

def setup_cell
  row_type.setup_call
end