Class: Alchemy::Admin::Resource::Cell
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- Alchemy::Admin::Resource::Cell
- Defined in:
- app/components/alchemy/admin/resource/cell.rb
Overview
Renders a table cell with the given css classes
Instance Attribute Summary collapse
-
#block ⇒ Object
readonly
Returns the value of attribute block.
-
#css_classes ⇒ Object
readonly
Returns the value of attribute css_classes.
Instance Method Summary collapse
-
#initialize(css_classes, resource = nil, &block) ⇒ Cell
constructor
A new instance of Cell.
Constructor Details
#initialize(css_classes, resource = nil, &block) ⇒ Cell
Returns a new instance of Cell.
24 25 26 27 28 |
# File 'app/components/alchemy/admin/resource/cell.rb', line 24 def initialize(css_classes, resource = nil, &block) @css_classes = css_classes @resource = resource @block = block end |
Instance Attribute Details
#block ⇒ Object (readonly)
Returns the value of attribute block.
16 17 18 |
# File 'app/components/alchemy/admin/resource/cell.rb', line 16 def block @block end |
#css_classes ⇒ Object (readonly)
Returns the value of attribute css_classes.
16 17 18 |
# File 'app/components/alchemy/admin/resource/cell.rb', line 16 def css_classes @css_classes end |