Exception: Literal::TypeError
- Inherits:
-
TypeError
- Object
- TypeError
- Literal::TypeError
- Includes:
- Error
- Defined in:
- lib/literal/type_error.rb
Class Method Summary collapse
Class Method Details
.expected(value, to_be_a:) ⇒ Object
6 7 8 9 |
# File 'lib/literal/type_error.rb', line 6 def self.expected(value, to_be_a:) type = to_be_a new("Expected `#{value.inspect}` to be of type: `#{type.inspect}`.") end |