Class: Enumerator::Lazy

Inherits:
Object
  • Object
show all
Defined in:
lib/enumerator.rb

Instance Method Summary collapse

Instance Method Details

#auto_forceObject

Returns an Enumerator::AutoForcedLazy, which wraps Enumerator::Lazy to provide access to Array methods without requiring a previous explicit call to Enumerator::Lazy#force.



57
58
59
# File 'lib/enumerator.rb', line 57

def auto_force
  AutoForcedLazy.new(self)
end