Exception: RubytTypeError
- Inherits:
-
RubytError
- Object
- StandardError
- RubytError
- RubytTypeError
- Defined in:
- lib/types/errors/rubyt_type_error.rb
Instance Method Summary collapse
-
#initialize(expected_class, actual_class) ⇒ RubytTypeError
constructor
A new instance of RubytTypeError.
Constructor Details
#initialize(expected_class, actual_class) ⇒ RubytTypeError
Returns a new instance of RubytTypeError.
6 |
# File 'lib/types/errors/rubyt_type_error.rb', line 6 def initialize(expected_class, actual_class) = super("Expected #{expected_class} but got #{actual_class} instead") |