Class: FileStreamer
- Inherits:
-
Object
- Object
- FileStreamer
- Defined in:
- lib/culpa/renderers/file.rb
Overview
This renderer loads the FileStreamer helper used to stream a file to the client.
Instance Method Summary collapse
- #each(&blk) ⇒ Object
-
#initialize(element) ⇒ FileStreamer
constructor
A new instance of FileStreamer.
Constructor Details
#initialize(element) ⇒ FileStreamer
Returns a new instance of FileStreamer.
7 8 9 |
# File 'lib/culpa/renderers/file.rb', line 7 def initialize(element) @element = element end |
Instance Method Details
#each(&blk) ⇒ Object
11 12 13 14 15 |
# File 'lib/culpa/renderers/file.rb', line 11 def each(&blk) @element.each(&blk) ensure @element.close end |