Method: Layout::Index::Cell#initialize

Defined in:
app/cells/lato_view/layout/index/cell.rb

#initialize(elements: nil, head: nil, attributes: nil, link: nil, show_link: true, edit_link: true, delete_link: true, remote_delete: false, custom_class: nil) ⇒ Cell

Returns a new instance of Cell.



7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'app/cells/lato_view/layout/index/cell.rb', line 7

def initialize(elements: nil, head: nil, attributes: nil, link: nil,
               show_link: true, edit_link: true, delete_link: true,
               remote_delete: false, custom_class: nil)
  # save params
  @elements = elements
  @head = head
  @attributes = attributes
  @link = link
  @show_link = show_link
  @edit_link = edit_link
  @delete_link = delete_link
  @remote_delete = remote_delete
  @custom_class = custom_class
  # check params
  check_params
end