Class: T::Types::TypedArray::Untyped

Inherits:
T::Types::TypedArray show all
Defined in:
lib/types/types/typed_array.rb

Instance Attribute Summary

Attributes inherited from T::Types::TypedEnumerable

#type

Instance Method Summary collapse

Methods inherited from T::Types::TypedArray

#name, #new, #underlying_class

Methods inherited from T::Types::TypedEnumerable

#describe_obj, #name, #underlying_class

Methods inherited from Base

#==, #describe_obj, #error_message_for_obj, #hash, method_added, #name, #subtype_of?, #to_s, #validate!

Constructor Details

#initializeUntyped

Returns a new instance of Untyped.



25
26
27
# File 'lib/types/types/typed_array.rb', line 25

def initialize
  super(T.untyped)
end

Instance Method Details

#valid?(obj) ⇒ Boolean

Returns:



29
30
31
# File 'lib/types/types/typed_array.rb', line 29

def valid?(obj)
  obj.is_a?(Array)
end