Class: DDBuffer

Inherits:
Object
  • Object
show all
Defined in:
lib/ddbuffer.rb,
lib/ddbuffer/version.rb

Constant Summary collapse

VERSION =
'1.0.1'

Instance Method Summary collapse

Constructor Details

#initialize(size) ⇒ DDBuffer

Returns a new instance of DDBuffer.



8
9
10
# File 'lib/ddbuffer.rb', line 8

def initialize(size)
  @size = size
end

Instance Method Details

#call(enum) ⇒ Object



12
13
14
# File 'lib/ddbuffer.rb', line 12

def call(enum)
  SlowEnumeratorTools.buffer(enum, @size)
end