Module: Racket::Helpers::File
- Defined in:
- lib/racket/helpers/file.rb
Overview
Helper module that handles files
Defined Under Namespace
Classes: Response
Instance Method Summary collapse
-
#send_file(file, options = {}) ⇒ Array
Sends the contents of a file to the client.
Instance Method Details
#send_file(file, options = {}) ⇒ Array
Sends the contents of a file to the client.
84 85 86 |
# File 'lib/racket/helpers/file.rb', line 84 def send_file(file, = {}) respond!(*(Response.new(file, ).to_a)) end |