Exception: Xommelier::TypeError
- Defined in:
- lib/xommelier.rb
Overview
Typecasting error
Instance Method Summary collapse
-
#initialize(object, type) ⇒ TypeError
constructor
A new instance of TypeError.
Constructor Details
#initialize(object, type) ⇒ TypeError
Returns a new instance of TypeError.
35 36 37 |
# File 'lib/xommelier.rb', line 35 def initialize(object, type) super("Cannot typecast #{object.inspect} to #{type}") end |