Sha256: cbbd00f0b5026fc667b70f25e640c1e308a1b3f1415156d9c0588dbf49715749

Contents?: true

Size: 351 Bytes

Versions: 13

Compression:

Stored size: 351 Bytes

Contents

# encoding: utf-8
# frozen_string_literal: true

module RuboCop
  # This module provides a shorthand method to create a {Node} like `AST::Sexp`.
  #
  # @see http://rubydoc.info/gems/ast/AST/Sexp
  module Sexp
    # Creates a {Node} with type `type` and children `children`.
    def s(type, *children)
      Node.new(type, children)
    end
  end
end

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
fluent-plugin-detect-memb-exceptions-0.0.2 vendor/bundle/ruby/2.0.0/gems/rubocop-0.42.0/lib/rubocop/ast_node/sexp.rb
fluent-plugin-detect-memb-exceptions-0.0.1 vendor/bundle/ruby/2.0.0/gems/rubocop-0.42.0/lib/rubocop/ast_node/sexp.rb
rubocop-0.43.0 lib/rubocop/ast_node/sexp.rb
rubocop-0.42.0 lib/rubocop/ast_node/sexp.rb
rubocop-0.41.2 lib/rubocop/ast_node/sexp.rb
rubocop-0.41.1 lib/rubocop/ast_node/sexp.rb
rubocop-0.41.0 lib/rubocop/ast_node/sexp.rb
rubocop-0.40.0 lib/rubocop/ast_node/sexp.rb
rubocop-0.39.0 lib/rubocop/ast_node/sexp.rb
rubocop-0.38.0 lib/rubocop/ast_node/sexp.rb
rubocop-0.37.2 lib/rubocop/ast_node/sexp.rb
rubocop-0.37.1 lib/rubocop/ast_node/sexp.rb
rubocop-0.37.0 lib/rubocop/ast_node/sexp.rb