Sha256: eb1886448a0bcf2ffb2d7695702b7bf60e37361ead4172466253a1471b443b7c

Contents?: true

Size: 294 Bytes

Versions: 18

Compression:

Stored size: 294 Bytes

Contents

# frozen_string_literal: true

module Reek
  module AST
    module SexpExtensions
      # Utility methods for :yield nodes.
      module YieldNode
        def args
          children
        end

        def arg_names
          args.map { |arg| arg[1] }
        end
      end
    end
  end
end

Version data entries

18 entries across 16 versions & 2 rubygems

Version Path
reek-5.3.0 lib/reek/ast/sexp_extensions/yield.rb
config_gems_initialization_aim-0.1.4 vendor/bundle/ruby/2.5.0/gems/reek-5.2.0/lib/reek/ast/sexp_extensions/yield.rb
config_gems_initialization_aim-0.1.4 vendor/bundle/ruby/2.5.0/gems/config_gems_initialization_aim-0.1.1/vendor/bundle/ruby/2.5.0/gems/reek-5.2.0/lib/reek/ast/sexp_extensions/yield.rb
config_gems_initialization_aim-0.1.3 vendor/bundle/ruby/2.5.0/gems/reek-5.2.0/lib/reek/ast/sexp_extensions/yield.rb
config_gems_initialization_aim-0.1.3 vendor/bundle/ruby/2.5.0/gems/config_gems_initialization_aim-0.1.1/vendor/bundle/ruby/2.5.0/gems/reek-5.2.0/lib/reek/ast/sexp_extensions/yield.rb
reek-5.2.0 lib/reek/ast/sexp_extensions/yield.rb
reek-5.1.0 lib/reek/ast/sexp_extensions/yield.rb
reek-5.0.2 lib/reek/ast/sexp_extensions/yield.rb
reek-5.0.1 lib/reek/ast/sexp_extensions/yield.rb
reek-5.0.0 lib/reek/ast/sexp_extensions/yield.rb
reek-4.8.2 lib/reek/ast/sexp_extensions/yield.rb
reek-4.8.1 lib/reek/ast/sexp_extensions/yield.rb
reek-4.8.0 lib/reek/ast/sexp_extensions/yield.rb
reek-4.7.3 lib/reek/ast/sexp_extensions/yield.rb
reek-4.7.2 lib/reek/ast/sexp_extensions/yield.rb
reek-4.7.1 lib/reek/ast/sexp_extensions/yield.rb
reek-4.7.0 lib/reek/ast/sexp_extensions/yield.rb
reek-4.6.2 lib/reek/ast/sexp_extensions/yield.rb