Class: Mementus::Query::Step

Inherits:
Object
  • Object
show all
Defined in:
lib/mementus/query/step.rb

Instance Method Summary collapse

Constructor Details

#initialize(traversal, id) ⇒ Step

Returns a new instance of Step.



4
5
6
# File 'lib/mementus/query/step.rb', line 4

def initialize(traversal, id)
  @node = NodeProxy.new(id, traversal.graph)
end

Instance Method Details

#to_nodeObject



8
9
10
# File 'lib/mementus/query/step.rb', line 8

def to_node
  @node
end