Class: HakumiComponents::Table::HeaderCell
- Inherits:
-
Object
- Object
- HakumiComponents::Table::HeaderCell
- Extended by:
- T::Sig
- Defined in:
- app/components/hakumi_components/table/header_cell.rb
Instance Attribute Summary collapse
-
#col_span ⇒ Object
readonly
Returns the value of attribute col_span.
-
#column ⇒ Object
readonly
Returns the value of attribute column.
-
#row_span ⇒ Object
readonly
Returns the value of attribute row_span.
Instance Method Summary collapse
-
#initialize(column:, col_span:, row_span:) ⇒ HeaderCell
constructor
A new instance of HeaderCell.
Constructor Details
#initialize(column:, col_span:, row_span:) ⇒ HeaderCell
Returns a new instance of HeaderCell.
10 11 12 13 14 |
# File 'app/components/hakumi_components/table/header_cell.rb', line 10 def initialize(column:, col_span:, row_span:) @column = T.let(column, HakumiComponents::Table::ColumnDefinition) @col_span = T.let(col_span, Integer) @row_span = T.let(row_span, Integer) end |
Instance Attribute Details
#col_span ⇒ Object (readonly)
Returns the value of attribute col_span.
20 21 22 |
# File 'app/components/hakumi_components/table/header_cell.rb', line 20 def col_span @col_span end |
#column ⇒ Object (readonly)
Returns the value of attribute column.
17 18 19 |
# File 'app/components/hakumi_components/table/header_cell.rb', line 17 def column @column end |
#row_span ⇒ Object (readonly)
Returns the value of attribute row_span.
20 21 22 |
# File 'app/components/hakumi_components/table/header_cell.rb', line 20 def row_span @row_span end |