Exception: Expect::UnmatchedMessage

Inherits:
Exception
  • Object
show all
Defined in:
lib/carat/expect.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#msgObject (readonly)

Returns the value of attribute msg.



39
40
41
# File 'lib/carat/expect.rb', line 39

def msg
  @msg
end