Class: Duckface::MethodImplementation
- Inherits:
-
Object
- Object
- Duckface::MethodImplementation
- Defined in:
- lib/duckface/method_implementation.rb
Instance Method Summary collapse
-
#initialize(klass, method_name) ⇒ MethodImplementation
constructor
A new instance of MethodImplementation.
- #owner ⇒ Object
- #parameters_for_comparison ⇒ Object
Constructor Details
#initialize(klass, method_name) ⇒ MethodImplementation
Returns a new instance of MethodImplementation.
8 9 10 11 |
# File 'lib/duckface/method_implementation.rb', line 8 def initialize(klass, method_name) @klass = klass @method_name = method_name end |
Instance Method Details
#owner ⇒ Object
17 18 19 |
# File 'lib/duckface/method_implementation.rb', line 17 def owner @owner ||= implementation.owner end |
#parameters_for_comparison ⇒ Object
13 14 15 |
# File 'lib/duckface/method_implementation.rb', line 13 def parameters_for_comparison @parameters_for_comparison ||= ParameterPairs.new(parameters).for_comparison end |