Method: Dragonfly::TempObject#each
- Defined in:
- lib/dragonfly/temp_object.rb
#each(&block) ⇒ Object
122 123 124 125 126 127 128 |
# File 'lib/dragonfly/temp_object.rb', line 122 def each(&block) to_io do |io| while part = io.read(block_size) yield part end end end |