Class: Layout::Tablerows::Cell

Inherits:
Cell
  • Object
show all
Defined in:
app/cells/lato_view/layout/tablerows/cell.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#valuesObject

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

#showObject



14
15
16
# File 'app/cells/lato_view/layout/tablerows/cell.rb', line 14

def show
  render 'show.html'
end