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

#columnObject

Returns the value of attribute column



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

def column
  @column
end

#rowObject

Returns the value of attribute row



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

def row
  @row
end

Instance Method Details

#valueObject

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