Class: T::Types::TypedArray
- Inherits:
-
TypedEnumerable
- Object
- Base
- TypedEnumerable
- T::Types::TypedArray
- Defined in:
- lib/types/types/typed_array.rb
Direct Known Subclasses
Defined Under Namespace
Classes: Untyped
Instance Attribute Summary
Attributes inherited from TypedEnumerable
Instance Method Summary collapse
- #name ⇒ Object
-
#new(*args) ⇒ Object
rubocop:disable PrisonGuard/BanBuiltinMethodOverride.
- #underlying_class ⇒ Object
- #valid?(obj) ⇒ Boolean
Methods inherited from TypedEnumerable
Methods inherited from Base
#==, #describe_obj, #error_message_for_obj, #hash, method_added, #subtype_of?, #to_s, #validate!
Constructor Details
This class inherits a constructor from T::Types::TypedEnumerable
Instance Method Details
#name ⇒ Object
7 8 9 |
# File 'lib/types/types/typed_array.rb', line 7 def name "T::Array[#{@type.name}]" end |
#new(*args) ⇒ Object
rubocop:disable PrisonGuard/BanBuiltinMethodOverride
20 21 22 |
# File 'lib/types/types/typed_array.rb', line 20 def new(*args) # rubocop:disable PrisonGuard/BanBuiltinMethodOverride Array.new(*T.unsafe(args)) end |
#underlying_class ⇒ Object
11 12 13 |
# File 'lib/types/types/typed_array.rb', line 11 def Array end |