Class: HakumiComponents::Table::HeaderCell

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Defined in:
app/components/hakumi_components/table/header_cell.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_spanObject (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

#columnObject (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_spanObject (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