Sha256: 29ac6a29ca4841112116be055fd1cee993312e778fabbe7751d46056538059c6
Contents?: true
Size: 438 Bytes
Versions: 138
Compression:
Stored size: 438 Bytes
Contents
# frozen_string_literal: true module RuboCop module AST # This module provides a shorthand method to create a {Node} like # `Parser::AST::Sexp`. # # @see https://www.rubydoc.info/gems/ast/AST/Sexp module Sexp # Creates a {Node} with type `type` and children `children`. def s(type, *children) klass = Builder::NODE_MAP[type] || Node klass.new(type, children) end end end end
Version data entries
138 entries across 138 versions & 19 rubygems