Class: Angelo::Base::ChunkedResponse

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

Instance Method Summary collapse

Constructor Details

#initialize(&block) ⇒ ChunkedResponse

Returns a new instance of ChunkedResponse.



368
369
370
# File 'lib/angelo/base.rb', line 368

def initialize &block
  @chunker = block
end

Instance Method Details

#each(&block) ⇒ Object



372
373
374
# File 'lib/angelo/base.rb', line 372

def each &block
  @chunker[block]
end