class T::Private::Types::NotTyped

A placeholder for when an untyped thing must provide a type. Raises an exception if it is ever used for validation.

Constants

ERROR_MESSAGE

Public Instance Methods

name() click to toggle source

@override Base

# File lib/types/private/types/not_typed.rb, line 10
def name
  "<NOT-TYPED>"
end
valid?(obj) click to toggle source

@override Base

# File lib/types/private/types/not_typed.rb, line 15
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/not_typed.rb, line 20
        def subtype_of_single?(other)
  raise ERROR_MESSAGE
end