Exception: Chickpea::TypeError

Inherits:
TypeError
  • Object
show all
Defined in:
lib/chickpea.rb

Instance Method Summary collapse

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