Module: RuboCop::Sexp

Overview

This module provides a shorthand method to create a Node like ‘AST::Sexp`.

Instance Method Summary collapse

Instance Method Details

#s(type, *children) ⇒ Object

Creates a Node with type ‘type` and children `children`.



9
10
11
# File 'lib/rubocop/ast_node/sexp.rb', line 9

def s(type, *children)
  Node.new(type, children)
end