Exception: Sir::Wrapper::ExpectationError
- Inherits:
-
StandardError
- Object
- StandardError
- Sir::Wrapper::ExpectationError
- Defined in:
- lib/sir/wrapper.rb
Instance Attribute Summary collapse
-
#message ⇒ Object
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(msg, expected, got) ⇒ ExpectationError
constructor
A new instance of ExpectationError.
Constructor Details
#initialize(msg, expected, got) ⇒ ExpectationError
Returns a new instance of ExpectationError.
7 8 9 |
# File 'lib/sir/wrapper.rb', line 7 def initialize(msg, expected, got) @message = "#{msg}\n\texpected: #{expected}\n\tgot: #{got}" end |
Instance Attribute Details
#message ⇒ Object
Returns the value of attribute message.
5 6 7 |
# File 'lib/sir/wrapper.rb', line 5 def @message end |