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.



345
346
347
# File 'lib/angelo/base.rb', line 345

def initialize &block
  @chunker = block
end

Instance Method Details

#each(&block) ⇒ Object



349
350
351
# File 'lib/angelo/base.rb', line 349

def each &block
  @chunker[block]
end