Exception: Chickpea::TypeError
- Inherits:
-
TypeError
- Object
- TypeError
- Chickpea::TypeError
- Defined in:
- lib/chickpea.rb
Instance Method Summary collapse
-
#initialize(got, expected) ⇒ TypeError
constructor
A new instance of TypeError.
Constructor Details
#initialize(got, expected) ⇒ TypeError
Returns a new instance of TypeError.
5 6 7 |
# File 'lib/chickpea.rb', line 5 def initialize(got, expected) super("expected #{got.inspect} to be a #{expected}") end |