Class: T::Types::TypedClass::Untyped

Inherits:
T::Types::TypedClass show all
Defined in:
lib/types/types/typed_class.rb

Defined Under Namespace

Modules: Private

Instance Method Summary collapse

Methods inherited from T::Types::TypedClass

#build_type, #name, #type, #underlying_class, #valid?

Methods inherited from Base

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

Constructor Details

#initializeUntyped

Returns a new instance of Untyped.



73
74
75
# File 'lib/types/types/typed_class.rb', line 73

def initialize
  super(T.untyped)
end

Instance Method Details

#freezeObject



77
78
79
80
# File 'lib/types/types/typed_class.rb', line 77

def freeze
  build_type # force lazy initialization before freezing the object
  super
end