Class: Forester::NodeContent::Factory
- Inherits:
-
Object
- Object
- Forester::NodeContent::Factory
- Defined in:
- lib/forester/node_content/factory.rb
Class Method Summary collapse
Class Method Details
.from_array(array) ⇒ Object
13 14 15 |
# File 'lib/forester/node_content/factory.rb', line 13 def from_array(array) List.new(array) end |
.from_hash(hash, children_key, indifferent = true) ⇒ Object
7 8 9 10 11 |
# File 'lib/forester/node_content/factory.rb', line 7 def from_hash(hash, children_key, indifferent = true) ret = without_key(hash, children_key) ret = Dictionary.new(ret) if indifferent ret end |