Sha256: 43e980d37875ea9b026537e70f0732de386fafab31db68d03312a0d101bbe951
Contents?: true
Size: 461 Bytes
Versions: 1
Compression:
Stored size: 461 Bytes
Contents
module LatoView class Layout::Tablerows::Cell < Cell # NB: values must be an array of hash {title: 'title', content: 'content'} attr_accessor :values def initialize(values: []) # save params @values = values # check params check_params end def show render 'show.html' end private def check_params raise 'Tablerows Cell: values must be an array' unless @values.is_a? Array end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
lato_view-1.1.5 | app/cells/lato_view/layout/tablerows/cell.rb |