Class: StaticFile

Inherits:
File
  • Object
show all
Defined in:
lib/junior/helpers.rb

Overview

Rack response body used to deliver static files. The file contents are generated iteratively in 8K chunks.

Instance Method Summary collapse

Instance Method Details

#eachObject



132
133
134
135
136
137
# File 'lib/junior/helpers.rb', line 132

def each
  rewind
  while buf = read(8192)
    yield buf
  end
end