Class: MyStorageGem::Node
- Inherits:
-
Object
- Object
- MyStorageGem::Node
- Defined in:
- lib/Node.rb
Instance Attribute Summary collapse
-
#leafs ⇒ Object
Returns the value of attribute leafs.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(value = nil) ⇒ Node
constructor
A new instance of Node.
Constructor Details
#initialize(value = nil) ⇒ Node
Returns a new instance of Node.
7 8 9 10 |
# File 'lib/Node.rb', line 7 def initialize(value = nil) @value = value @leafs = [] end |
Instance Attribute Details
#leafs ⇒ Object
Returns the value of attribute leafs.
5 6 7 |
# File 'lib/Node.rb', line 5 def leafs @leafs end |
#value ⇒ Object
Returns the value of attribute value.
4 5 6 |
# File 'lib/Node.rb', line 4 def value @value end |