Class: RSpec::Mocks::ArgumentMatchers::EqualityProxy

Inherits:
Object
  • Object
show all
Defined in:
lib/rspec/mocks/argument_matchers.rb

Instance Method Summary (collapse)

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