123456789_123456789_123456789_123456789_123456789_

Class: RSpec::Mocks::Proxy::SpecificMessage Private

Do not use. This class is for internal use only.
Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, Struct
Instance Chain:
self, Struct
Inherits: Struct
  • Object
Defined in: rspec-mocks/lib/rspec/mocks/proxy.rb

Instance Attribute Summary

Instance Method Summary

Instance Attribute Details

#args (rw)

[ GitHub ]

  
# File 'rspec-mocks/lib/rspec/mocks/proxy.rb', line 8

SpecificMessage = Struct.new(:object, :message, :args)

#message (rw)

[ GitHub ]

  
# File 'rspec-mocks/lib/rspec/mocks/proxy.rb', line 8

SpecificMessage = Struct.new(:object, :message, :args)

#object (rw)

[ GitHub ]

  
# File 'rspec-mocks/lib/rspec/mocks/proxy.rb', line 8

SpecificMessage = Struct.new(:object, :message, :args)

Instance Method Details

#==(expectation)

[ GitHub ]

  
# File 'rspec-mocks/lib/rspec/mocks/proxy.rb', line 9

def ==(expectation)
  expectation.orig_object == object && expectation.matches?(message, *args)
end