Class: Arrolio::Table::Grid::Placement
- Inherits:
-
Struct
- Object
- Struct
- Arrolio::Table::Grid::Placement
- Defined in:
- lib/arrolio/table/grid.rb
Overview
One cell's position in the grid. row_index is the row the
cell STARTS in — a rowspan cell is placed and drawn only
there, with a height covering every spanned row.
Instance Attribute Summary collapse
-
#cell ⇒ Object
Returns the value of attribute cell.
-
#colspan ⇒ Object
Returns the value of attribute colspan.
-
#column_index ⇒ Object
Returns the value of attribute column_index.
-
#row_index ⇒ Object
Returns the value of attribute row_index.
-
#rowspan ⇒ Object
Returns the value of attribute rowspan.
Instance Method Summary collapse
Instance Attribute Details
#cell ⇒ Object
Returns the value of attribute cell
18 19 20 |
# File 'lib/arrolio/table/grid.rb', line 18 def cell @cell end |
#colspan ⇒ Object
Returns the value of attribute colspan
18 19 20 |
# File 'lib/arrolio/table/grid.rb', line 18 def colspan @colspan end |
#column_index ⇒ Object
Returns the value of attribute column_index
18 19 20 |
# File 'lib/arrolio/table/grid.rb', line 18 def column_index @column_index end |
#row_index ⇒ Object
Returns the value of attribute row_index
18 19 20 |
# File 'lib/arrolio/table/grid.rb', line 18 def row_index @row_index end |
#rowspan ⇒ Object
Returns the value of attribute rowspan
18 19 20 |
# File 'lib/arrolio/table/grid.rb', line 18 def rowspan @rowspan end |
Instance Method Details
#spans_multiple_columns? ⇒ Boolean
24 25 26 |
# File 'lib/arrolio/table/grid.rb', line 24 def spans_multiple_columns? colspan > 1 end |
#spans_multiple_rows? ⇒ Boolean
20 21 22 |
# File 'lib/arrolio/table/grid.rb', line 20 def spans_multiple_rows? rowspan > 1 end |