Class: RSpec::Mocks::ArgumentMatchers::EqualityProxy
- Inherits:
-
Object
- Object
- RSpec::Mocks::ArgumentMatchers::EqualityProxy
- Defined in:
- lib/rspec/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.
112 113 114 |
# File 'lib/rspec/mocks/argument_matchers.rb', line 112 def initialize(given) @given = given end |
Instance Method Details
#==(expected) ⇒ Object
116 117 118 |
# File 'lib/rspec/mocks/argument_matchers.rb', line 116 def ==(expected) @given == expected end |