Class: GraphQL::Visitor::NodeVisitor

Inherits:
Object
  • Object
show all
Defined in:
lib/graph_ql/parser/visitor.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeNodeVisitor

Returns a new instance of NodeVisitor.



54
55
56
57
# File 'lib/graph_ql/parser/visitor.rb', line 54

def initialize
  @enter = []
  @leave = []
end

Instance Attribute Details

#enterObject (readonly)

Returns the value of attribute enter.



53
54
55
# File 'lib/graph_ql/parser/visitor.rb', line 53

def enter
  @enter
end

#leaveObject (readonly)

Returns the value of attribute leave.



53
54
55
# File 'lib/graph_ql/parser/visitor.rb', line 53

def leave
  @leave
end

Instance Method Details

#<<(hook) ⇒ Object



59
60
61
# File 'lib/graph_ql/parser/visitor.rb', line 59

def <<(hook)
  enter << hook
end