Module: RuboCop::Sexp
- Included in:
- Cop::AccessModifierNode, Cop::Cop, Cop::Cop, Cop::Lint::DeprecatedClassMethods::DeprecatedClassMethod, Cop::Util, Node
- Defined in:
- lib/rubocop/ast_node/sexp.rb
Overview
This module provides a shorthand method to create a Node like ‘AST::Sexp`.
Instance Method Summary collapse
-
#s(type, *children) ⇒ Object
Creates a Node with type ‘type` and children `children`.
Instance Method Details
#s(type, *children) ⇒ Object
Creates a Node with type ‘type` and children `children`.
10 11 12 |
# File 'lib/rubocop/ast_node/sexp.rb', line 10 def s(type, *children) Node.new(type, children) end |