Class: Layout::Tablerows::Cell
- Inherits:
-
Cell
- Object
- Cell
- Layout::Tablerows::Cell
- Defined in:
- app/cells/lato_view/layout/tablerows/cell.rb
Instance Attribute Summary collapse
-
#values ⇒ Object
NB: values must be an array of hash ‘title’, content: ‘content’.
Instance Method Summary collapse
-
#initialize(values: []) ⇒ Cell
constructor
A new instance of Cell.
- #show ⇒ Object
Constructor Details
#initialize(values: []) ⇒ Cell
Returns a new instance of Cell.
7 8 9 10 11 12 |
# File 'app/cells/lato_view/layout/tablerows/cell.rb', line 7 def initialize(values: []) # save params @values = values # check params check_params end |
Instance Attribute Details
#values ⇒ Object
NB: values must be an array of hash ‘title’, content: ‘content’
5 6 7 |
# File 'app/cells/lato_view/layout/tablerows/cell.rb', line 5 def values @values end |
Instance Method Details
#show ⇒ Object
14 15 16 |
# File 'app/cells/lato_view/layout/tablerows/cell.rb', line 14 def show render 'show.html' end |