Class: T::Types::Untyped

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

Overview

A dynamic type, which permits whatever

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

#initializeUntyped

Returns a new instance of Untyped.



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

def initialize; end

Instance Method Details

#nameObject

overrides Base



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

def name
  "T.untyped"
end

#valid?(obj) ⇒ Boolean

overrides Base

Returns:



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

def valid?(obj)
  true
end