Class: GraphQL::Visitor::NodeVisitor
- Inherits:
-
Object
- Object
- GraphQL::Visitor::NodeVisitor
- Defined in:
- lib/graph_ql/parser/visitor.rb
Instance Attribute Summary collapse
-
#enter ⇒ Object
readonly
Returns the value of attribute enter.
-
#leave ⇒ Object
readonly
Returns the value of attribute leave.
Instance Method Summary collapse
- #<<(hook) ⇒ Object
-
#initialize ⇒ NodeVisitor
constructor
A new instance of NodeVisitor.
Constructor Details
#initialize ⇒ NodeVisitor
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
#enter ⇒ Object (readonly)
Returns the value of attribute enter.
53 54 55 |
# File 'lib/graph_ql/parser/visitor.rb', line 53 def enter @enter end |
#leave ⇒ Object (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 |