Class: T::Types::NoReturn

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

Overview

The bottom type

Defined Under Namespace

Modules: Private

Instance Method Summary collapse

Methods inherited from Base

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

Constructor Details

#initializeNoReturn

Returns a new instance of NoReturn.



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

def initialize; end

Instance Method Details

#nameObject

overrides Base



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

def name
  "T.noreturn"
end

#valid?(obj) ⇒ Boolean

overrides Base

Returns:



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

def valid?(obj)
  false
end