module RuboCop::AST::Sexp
This module provides a shorthand method to create a {Node} like ‘Parser::AST::Sexp`.
Public Instance Methods
s(type, *children)
click to toggle source
Creates a {Node} with type ‘type` and children `children`.
# File lib/rubocop/ast/sexp.rb, line 11 def s(type, *children) klass = Builder::NODE_MAP[type] || Node klass.new(type, children) end