Class: Essence::TableComponent::Column
- Inherits:
-
Object
- Object
- Essence::TableComponent::Column
- Defined in:
- app/components/essence/table_component.rb
Instance Attribute Summary collapse
-
#block ⇒ Object
readonly
Returns the value of attribute block.
-
#label ⇒ Object
readonly
Returns the value of attribute label.
Instance Method Summary collapse
-
#initialize(label, &block) ⇒ Column
constructor
A new instance of Column.
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
#block ⇒ Object (readonly)
Returns the value of attribute block.
20 21 22 |
# File 'app/components/essence/table_component.rb', line 20 def block @block end |
#label ⇒ Object (readonly)
Returns the value of attribute label.
20 21 22 |
# File 'app/components/essence/table_component.rb', line 20 def label @label end |