Class: CRUDtree::Master
- Inherits:
-
Object
- Object
- CRUDtree::Master
- Defined in:
- lib/crudtree/tree/master.rb
Instance Attribute Summary collapse
-
#mapping ⇒ Object
Returns the value of attribute mapping.
-
#nodes ⇒ Object
(also: #subs)
readonly
Returns the value of attribute nodes.
-
#params ⇒ Object
Returns the value of attribute params.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ Master
constructor
Use :rango => true if you’re using rango.
- #node(params, &block) ⇒ Object
Constructor Details
#initialize(params = {}) ⇒ Master
Use :rango => true if you’re using rango
5 6 7 8 |
# File 'lib/crudtree/tree/master.rb', line 5 def initialize(params = {}) @nodes = [] @params = {dispatcher: :dispatcher}.merge(params) end |
Instance Attribute Details
#mapping ⇒ Object
Returns the value of attribute mapping.
11 12 13 |
# File 'lib/crudtree/tree/master.rb', line 11 def mapping @mapping end |
#nodes ⇒ Object (readonly) Also known as: subs
Returns the value of attribute nodes.
10 11 12 |
# File 'lib/crudtree/tree/master.rb', line 10 def nodes @nodes end |
#params ⇒ Object
Returns the value of attribute params.
11 12 13 |
# File 'lib/crudtree/tree/master.rb', line 11 def params @params end |