Class: Spec::Mocks::ArgumentMatchers::EqualityProxy
- Defined in:
- lib/spec/mocks/argument_matchers.rb
Instance Method Summary collapse
- #==(expected) ⇒ Object
-
#initialize(given) ⇒ EqualityProxy
constructor
A new instance of EqualityProxy.
Constructor Details
#initialize(given) ⇒ EqualityProxy
Returns a new instance of EqualityProxy.
116 117 118 |
# File 'lib/spec/mocks/argument_matchers.rb', line 116 def initialize(given) @given = given end |
Instance Method Details
#==(expected) ⇒ Object
120 121 122 |
# File 'lib/spec/mocks/argument_matchers.rb', line 120 def ==(expected) @given == expected end |