Class: TypedRb::Types::TyError
Instance Attribute Summary
Attributes inherited from Type
Instance Method Summary collapse
- #compatible?(_relation, _other_type = :lt) ⇒ Boolean
-
#initialize(node = nil) ⇒ TyError
constructor
A new instance of TyError.
- #to_s ⇒ Object
Methods inherited from Type
Constructor Details
#initialize(node = nil) ⇒ TyError
Returns a new instance of TyError.
4 5 6 |
# File 'lib/typed/types/ty_error.rb', line 4 def initialize(node = nil) super(node) end |
Instance Method Details
#compatible?(_relation, _other_type = :lt) ⇒ Boolean
12 13 14 |
# File 'lib/typed/types/ty_error.rb', line 12 def compatible?(_relation, _other_type = :lt) true end |
#to_s ⇒ Object
8 9 10 |
# File 'lib/typed/types/ty_error.rb', line 8 def to_s 'error' end |