Class: Reek::YieldCallContext

Inherits:
CodeContext show all
Defined in:
lib/reek/yield_call_context.rb

Instance Attribute Summary collapse

Attributes inherited from CodeContext

#name

Instance Method Summary collapse

Methods inherited from CodeContext

#matches?, #method_missing, #num_methods, #outer_name, #to_s

Constructor Details

#initialize(outer, exp) ⇒ YieldCallContext

Returns a new instance of YieldCallContext.



7
8
9
10
# File 'lib/reek/yield_call_context.rb', line 7

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

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Reek::CodeContext

Instance Attribute Details

#parametersObject (readonly)

Returns the value of attribute parameters.



5
6
7
# File 'lib/reek/yield_call_context.rb', line 5

def parameters
  @parameters
end