Exception: RubytTypeError

Inherits:
RubytError show all
Defined in:
lib/types/errors/rubyt_type_error.rb

Instance Method Summary collapse

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")