Class: NodeVisitor::ParserAdapter
- Inherits:
-
Object
- Object
- NodeVisitor::ParserAdapter
- Defined in:
- lib/node_visitor/adapter/parser.rb
Instance Method Summary collapse
Instance Method Details
#get_children(node) ⇒ Object
15 16 17 |
# File 'lib/node_visitor/adapter/parser.rb', line 15 def get_children(node) node.children end |
#get_node_type(node) ⇒ Object
11 12 13 |
# File 'lib/node_visitor/adapter/parser.rb', line 11 def get_node_type(node) node.type end |
#is_node?(node) ⇒ Boolean
7 8 9 |
# File 'lib/node_visitor/adapter/parser.rb', line 7 def is_node?(node) node.is_a?(Parser::AST::Node) end |