Class: TypedRb::Types::TyError

Inherits:
Type show all
Defined in:
lib/typed/types/ty_error.rb

Instance Attribute Summary

Attributes inherited from Type

#node

Instance Method Summary collapse

Methods inherited from Type

#either?, #stack_jump?

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

Returns:

  • (Boolean)


12
13
14
# File 'lib/typed/types/ty_error.rb', line 12

def compatible?(_relation, _other_type = :lt)
  true
end

#to_sObject



8
9
10
# File 'lib/typed/types/ty_error.rb', line 8

def to_s
  'error'
end