class T::Private::Types::Void

A marking class for when methods return void. Should never appear in types directly.

Constants

ERROR_MESSAGE

Public Instance Methods

name() click to toggle source

@override Base

# File lib/types/private/types/void.rb, line 21
def name
  "<VOID>"
end
valid?(obj) click to toggle source

@override Base

# File lib/types/private/types/void.rb, line 26
def valid?(obj)
  raise ERROR_MESSAGE
end

Private Instance Methods

subtype_of_single?(other) click to toggle source

@override Base

# File lib/types/private/types/void.rb, line 31
        def subtype_of_single?(other)
  raise ERROR_MESSAGE
end