Class: Array

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

Instance Method Summary collapse

Instance Method Details

#infinite(&block) ⇒ Object



2
3
4
5
# File 'lib/unodos/sugar.rb', line 2

def infinite(&block)
  inf = Unodos::Infinite.new(self)
  block ? inf.each(&block) : inf
end