Class: T::Types::TypedClass::Anything

Inherits:
TypedClass
  • Object
show all
Defined in:
lib/types/types/typed_class.rb

Defined Under Namespace

Modules: Private

Instance Method Summary collapse

Constructor Details

#initializeAnything

Returns a new instance of Anything.



88
89
90
# File 'lib/types/types/typed_class.rb', line 88

def initialize
  super(T.anything)
end

Instance Method Details

#freezeObject



92
93
94
95
# File 'lib/types/types/typed_class.rb', line 92

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