Class: RSpec::Contracts::MessageArguments
- Inherits:
-
Object
- Object
- RSpec::Contracts::MessageArguments
- Defined in:
- lib/rspec/contracts/message_arguments.rb
Instance Attribute Summary collapse
-
#arguments ⇒ Object
readonly
Returns the value of attribute arguments.
Instance Method Summary collapse
- #fully_described_by?(other) ⇒ Boolean
-
#initialize(arguments) ⇒ MessageArguments
constructor
A new instance of MessageArguments.
- #to_hash ⇒ Object
Constructor Details
#initialize(arguments) ⇒ MessageArguments
Returns a new instance of MessageArguments.
6 7 8 |
# File 'lib/rspec/contracts/message_arguments.rb', line 6 def initialize(arguments) @arguments = arguments end |
Instance Attribute Details
#arguments ⇒ Object (readonly)
Returns the value of attribute arguments.
4 5 6 |
# File 'lib/rspec/contracts/message_arguments.rb', line 4 def arguments @arguments end |
Instance Method Details
#fully_described_by?(other) ⇒ Boolean
10 11 12 |
# File 'lib/rspec/contracts/message_arguments.rb', line 10 def fully_described_by?(other) other && (arguments == other.arguments) end |
#to_hash ⇒ Object
14 15 16 |
# File 'lib/rspec/contracts/message_arguments.rb', line 14 def to_hash {:arguments => arguments} end |