Method: MetalArchives::Collection#initialize

Defined in:
lib/metal_archives/collection.rb

#initialize(proc) ⇒ Collection

Construct a new Collection

proc

Proc or lambda, called repeatedly when iterating. Should return an array of results (stateful), should return an empty array when there are no results left.



17
18
19
# File 'lib/metal_archives/collection.rb', line 17

def initialize(proc)
  @proc = proc
end