Sha256: 58e425860d846f805fcffb816d006ad02f4942d9be0eb2c140e5ee96752e4a38

Contents?: true

Size: 254 Bytes

Versions: 6

Compression:

Stored size: 254 Bytes

Contents

require 'reek/code_context'

module Reek
  class YieldCallContext < CodeContext
    attr_reader :parameters

    def initialize(outer, exp)
      super
      @parameters = []
      args = exp[1]
      @parameters = args[0...-1] if args
    end
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
kevinrutherford-reek-0.3.1.4 lib/reek/yield_call_context.rb
kevinrutherford-reek-0.3.1.5 lib/reek/yield_call_context.rb
kevinrutherford-reek-0.3.1.6 lib/reek/yield_call_context.rb
kevinrutherford-reek-1.0.0 lib/reek/yield_call_context.rb
kevinrutherford-reek-1.0.1 lib/reek/yield_call_context.rb
reek-1.0.0 lib/reek/yield_call_context.rb