Method: AST::Node#deconstruct

Defined in:
lib/ast/node.rb

#deconstructArray

Enables matching for Node, where type is the first element and the children are remaining items.

Returns:

  • (Array)


253
254
255
# File 'lib/ast/node.rb', line 253

def deconstruct
  [type, *children]
end