Class: Sinatra::Helpers::StaticFile
- Inherits:
-
File
- Object
- File
- Sinatra::Helpers::StaticFile
- Defined in:
- lib/sinatra/base.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
#each ⇒ Object
165 166 167 168 169 170 |
# File 'lib/sinatra/base.rb', line 165 def each rewind while buf = read(8192) yield buf end end |