Class: Node
- Inherits:
-
Object
- Object
- Node
- Defined in:
- lib/dnode/walk.rb
Instance Attribute Summary collapse
-
#path ⇒ Object
readonly
Returns the value of attribute path.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(params) ⇒ Node
constructor
A new instance of Node.
Constructor Details
#initialize(params) ⇒ Node
Returns a new instance of Node.
55 56 57 58 |
# File 'lib/dnode/walk.rb', line 55 def initialize params @value = params[:value] @path = params[:path] end |
Instance Attribute Details
#path ⇒ Object (readonly)
Returns the value of attribute path.
62 63 64 |
# File 'lib/dnode/walk.rb', line 62 def path @path end |
#value ⇒ Object
Returns the value of attribute value.
60 61 62 |
# File 'lib/dnode/walk.rb', line 60 def value @value end |