Class: Spec::Mocks::ArgumentMatchers::EqualityProxy

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

Instance Method Summary collapse

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