Class: View::Table::Cell

Inherits:
Struct
  • Object
show all
Defined in:
lib/view/formatters/table.rb

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Instance Attribute Details

- (Object) column

Returns the value of attribute column



155
156
157
# File 'lib/view/formatters/table.rb', line 155

def column
  @column
end

- (Object) row

Returns the value of attribute row



155
156
157
# File 'lib/view/formatters/table.rb', line 155

def row
  @row
end

Instance Method Details

- (Object) value

Returns the formatted value for the cell



162
163
164
# File 'lib/view/formatters/table.rb', line 162

def value
  View.format(value_or_resource, options, template, &block)
end