Class: RSpec::Mocks::ArgumentMatchers::EqualityProxy
- Inherits:
-
Object
- Object
- RSpec::Mocks::ArgumentMatchers::EqualityProxy
- Defined in:
- lib/rspec/mocks/argument_matchers.rb
Instance Method Summary (collapse)
- - (Object) ==(expected)
-
- (EqualityProxy) initialize(given)
constructor
A new instance of EqualityProxy.
Constructor Details
- (EqualityProxy) initialize(given)
A new instance of EqualityProxy
107 108 109 |
# File 'lib/rspec/mocks/argument_matchers.rb', line 107 def initialize(given) @given = given end |
Instance Method Details
- (Object) ==(expected)
111 112 113 |
# File 'lib/rspec/mocks/argument_matchers.rb', line 111 def ==(expected) @given == expected end |