free_mutant/lib/mutant/node_helpers.rb
2013-06-14 21:11:54 +02:00

18 lines
297 B
Ruby

module Mutant
# Mixin for node helpers
module NodeHelpers
# Build node
#
# @param [Symbol] type
#
# @return [Parser::AST::Node]
#
# @api private
#
def s(type, *children)
Parser::AST::Node.new(type, children)
end
end # NodeHelpers
end # Mutant