Class: Essence::TableComponent::Column

Inherits:
Object
  • Object
show all
Defined in:
app/components/essence/table_component.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(label, &block) ⇒ Column

Returns a new instance of Column.



22
23
24
25
# File 'app/components/essence/table_component.rb', line 22

def initialize(label, &block)
  @label = label
  @block = block
end

Instance Attribute Details

#blockObject (readonly)

Returns the value of attribute block.



20
21
22
# File 'app/components/essence/table_component.rb', line 20

def block
  @block
end

#labelObject (readonly)

Returns the value of attribute label.



20
21
22
# File 'app/components/essence/table_component.rb', line 20

def label
  @label
end