Class: Elements::Code::Cell
- Inherits:
-
Cell
- Object
- Cell
- Elements::Code::Cell
- Defined in:
- app/cells/lato_core/elements/code/cell.rb
Constant Summary collapse
- @@requested_args =
[]
- @@default_args =
{ }
Instance Method Summary collapse
- #close ⇒ Object
-
#initialize(args = {}) ⇒ Cell
constructor
A new instance of Cell.
- #open ⇒ Object
Constructor Details
#initialize(args = {}) ⇒ Cell
Returns a new instance of Cell.
10 11 12 13 14 15 16 17 18 |
# File 'app/cells/lato_core/elements/code/cell.rb', line 10 def initialize(args = {}) @args = validate_args( args: args, requested_args: @@requested_args, default_args: @@default_args ) set_conditions end |
Instance Method Details
#close ⇒ Object
24 25 26 |
# File 'app/cells/lato_core/elements/code/cell.rb', line 24 def close render 'close.html' end |
#open ⇒ Object
20 21 22 |
# File 'app/cells/lato_core/elements/code/cell.rb', line 20 def open render 'open.html' end |