Class: Duckface::ParameterPair
- Inherits:
-
Object
- Object
- Duckface::ParameterPair
- Defined in:
- lib/duckface/parameter_pair.rb
Overview
Takes a method parameters and prepares them for comparison
Instance Method Summary collapse
- #for_comparison ⇒ Object
-
#initialize(parameter_pair) ⇒ ParameterPair
constructor
A new instance of ParameterPair.
Constructor Details
#initialize(parameter_pair) ⇒ ParameterPair
Returns a new instance of ParameterPair.
6 7 8 |
# File 'lib/duckface/parameter_pair.rb', line 6 def initialize(parameter_pair) @parameter_pair = parameter_pair end |
Instance Method Details
#for_comparison ⇒ Object
10 11 12 |
# File 'lib/duckface/parameter_pair.rb', line 10 def for_comparison [@parameter_pair.first, argument_name_without_leading_underscore] end |