Exception: MockSuey::MockContract::Error
- Inherits:
-
StandardError
- Object
- StandardError
- MockSuey::MockContract::Error
- Defined in:
- lib/mock_suey/mock_contract.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#contract ⇒ Object
readonly
Returns the value of attribute contract.
Instance Method Summary collapse
-
#initialize(contract, msg) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(contract, msg) ⇒ Error
Returns a new instance of Error.
12 13 14 15 |
# File 'lib/mock_suey/mock_contract.rb', line 12 def initialize(contract, msg) @contract = contract super(msg) end |
Instance Attribute Details
#contract ⇒ Object (readonly)
Returns the value of attribute contract.
10 11 12 |
# File 'lib/mock_suey/mock_contract.rb', line 10 def contract @contract end |