Class: Reek::YieldCallContext
- Inherits:
-
CodeContext
- Object
- CodeContext
- Reek::YieldCallContext
- Defined in:
- lib/reek/yield_call_context.rb
Instance Attribute Summary collapse
-
#parameters ⇒ Object
readonly
Returns the value of attribute parameters.
Attributes inherited from CodeContext
Instance Method Summary collapse
-
#initialize(outer, exp) ⇒ YieldCallContext
constructor
A new instance of YieldCallContext.
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
#parameters ⇒ Object (readonly)
Returns the value of attribute parameters.
5 6 7 |
# File 'lib/reek/yield_call_context.rb', line 5 def parameters @parameters end |