Class: Node

Inherits:
Object
  • Object
show all
Defined in:
lib/dnode/walk.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#pathObject (readonly)

Returns the value of attribute path.



62
63
64
# File 'lib/dnode/walk.rb', line 62

def path
  @path
end

#valueObject

Returns the value of attribute value.



60
61
62
# File 'lib/dnode/walk.rb', line 60

def value
  @value
end