Method: AST::Node#deconstruct
- Defined in:
- lib/ast/node.rb
#deconstruct ⇒ Array
Enables matching for Node, where type is the first element and the children are remaining items.
253 254 255 |
# File 'lib/ast/node.rb', line 253 def deconstruct [type, *children] end |