Exception: Expect::UnmatchedMessage
- Defined in:
- lib/carat/expect.rb
Instance Attribute Summary collapse
-
#msg ⇒ Object
readonly
Returns the value of attribute msg.
Instance Method Summary collapse
-
#initialize(msg) ⇒ UnmatchedMessage
constructor
A new instance of UnmatchedMessage.
Constructor Details
#initialize(msg) ⇒ UnmatchedMessage
41 42 43 44 |
# File 'lib/carat/expect.rb', line 41 def initialize(msg) @msg = msg super("Message not matched: `#{msg}'") end |
Instance Attribute Details
#msg ⇒ Object (readonly)
Returns the value of attribute msg.
39 40 41 |
# File 'lib/carat/expect.rb', line 39 def msg @msg end |