Class: PandaCms::Admin::Column
- Inherits:
-
Object
- Object
- PandaCms::Admin::Column
- Defined in:
- app/components/panda_cms/admin/table_component.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#cell ⇒ Object
readonly
Returns the value of attribute cell.
-
#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.
29 30 31 32 |
# File 'app/components/panda_cms/admin/table_component.rb', line 29 def initialize(label, &block) @label = label @cell = block end |
Instance Attribute Details
#cell ⇒ Object (readonly)
Returns the value of attribute cell.
27 28 29 |
# File 'app/components/panda_cms/admin/table_component.rb', line 27 def cell @cell end |
#label ⇒ Object (readonly)
Returns the value of attribute label.
27 28 29 |
# File 'app/components/panda_cms/admin/table_component.rb', line 27 def label @label end |