class T::Types::TypedEnumerator

Attributes

type[R]

Public Instance Methods

name() click to toggle source

@override Base

# File lib/types/types/typed_enumerator.rb, line 13
def name
  "T::Enumerator[#{@type.name}]"
end
new(*args, &blk) click to toggle source
# File lib/types/types/typed_enumerator.rb, line 27
def new(*args, &blk)
  T.unsafe(Enumerator).new(*args, &blk)
end
recursively_valid?(obj) click to toggle source

@override Base

# File lib/types/types/typed_enumerator.rb, line 18
def recursively_valid?(obj)
  obj.is_a?(Enumerator) && super
end
underlying_class() click to toggle source
# File lib/types/types/typed_enumerator.rb, line 8
def underlying_class
  Enumerator
end
valid?(obj) click to toggle source

@override Base

# File lib/types/types/typed_enumerator.rb, line 23
def valid?(obj)
  obj.is_a?(Enumerator)
end