Exception: Rus3::WrongTypeError
- Defined in:
- lib/rus3/error.rb
Constant Summary
Constants inherited from Error
Constants included from EmptyList
Instance Method Summary collapse
-
#initialize(obj, expected) ⇒ WrongTypeError
constructor
A new instance of WrongTypeError.
Methods inherited from Error
Methods included from EmptyList
Constructor Details
#initialize(obj, expected) ⇒ WrongTypeError
Returns a new instance of WrongTypeError.
122 123 124 125 |
# File 'lib/rus3/error.rb', line 122 def initialize(obj, expected) emsg = EMSG[:wrong_type] % [obj, expected] super(emsg) end |