Exception: Embedson::ClassTypeError
- Inherits:
-
TypeError
- Object
- TypeError
- Embedson::ClassTypeError
- Defined in:
- lib/embedson/exceptions.rb
Instance Method Summary collapse
-
#initialize(wrong_name, correct_name) ⇒ ClassTypeError
constructor
A new instance of ClassTypeError.
Constructor Details
#initialize(wrong_name, correct_name) ⇒ ClassTypeError
Returns a new instance of ClassTypeError.
4 5 6 |
# File 'lib/embedson/exceptions.rb', line 4 def initialize(wrong_name, correct_name) super("Wrong argument type #{wrong_name} (expected #{correct_name})") end |