Class: Elements::Row::Cell

Inherits:
Cell
  • Object
show all
Defined in:
app/cells/lato_core/elements/row/cell.rb

Constant Summary collapse

@@requested_args =
[]
@@default_args =
{
  
}

Instance Method Summary collapse

Constructor Details

#initialize(args = {}) ⇒ Cell

Returns a new instance of Cell.



11
12
13
14
15
16
17
18
19
# File 'app/cells/lato_core/elements/row/cell.rb', line 11

def initialize(args = {})
  @args = validate_args(
    args: args,
    requested_args: @@requested_args,
    default_args: @@default_args
  )

  set_conditions
end

Instance Method Details

#closeObject



25
26
27
# File 'app/cells/lato_core/elements/row/cell.rb', line 25

def close
  render 'close.html'
end

#openObject



21
22
23
# File 'app/cells/lato_core/elements/row/cell.rb', line 21

def open
  render 'open.html'
end