Class: View::Table::Row
- Inherits:
-
Struct
- Object
- Struct
- View::Table::Row
- Defined in:
- lib/view/formatters/table.rb
Instance Attribute Summary (collapse)
-
- (Object) index
Returns the value of attribute index.
-
- (Object) resource
Returns the value of attribute resource.
-
- (Object) table
Returns the value of attribute table.
Instance Method Summary (collapse)
-
- (Object) each {|Cell| ... }
Loops through all columns and yields cells.
Instance Attribute Details
- (Object) index
Returns the value of attribute index
142 143 144 |
# File 'lib/view/formatters/table.rb', line 142 def index @index end |
- (Object) resource
Returns the value of attribute resource
142 143 144 |
# File 'lib/view/formatters/table.rb', line 142 def resource @resource end |
- (Object) table
Returns the value of attribute table
142 143 144 |
# File 'lib/view/formatters/table.rb', line 142 def table @table end |
Instance Method Details
- (Object) each {|Cell| ... }
Loops through all columns and yields cells.
147 148 149 150 151 |
# File 'lib/view/formatters/table.rb', line 147 def each table.columns.each do |column| yield Cell.new(self, column) end end |