Class: T::Types::NoReturn

Inherits:
Base
  • Object
show all
Defined in:
lib/types/types/noreturn.rb

Overview

The bottom type

Instance Method Summary collapse

Methods inherited from Base

#==, #describe_obj, #error_message_for_obj, #hash, method_added, #subtype_of?, #to_s, #validate!

Constructor Details

#initializeNoReturn

Returns a new instance of NoReturn.



8
# File 'lib/types/types/noreturn.rb', line 8

def initialize; end

Instance Method Details

#nameObject



11
12
13
# File 'lib/types/types/noreturn.rb', line 11

def name
  "T.noreturn"
end

#valid?(obj) ⇒ Boolean

Returns:



16
17
18
# File 'lib/types/types/noreturn.rb', line 16

def valid?(obj)
  false
end