module SendFile

Public Instance Methods

send_file(path) click to toggle source
# File lib/send_file.rb, line 4
def send_file(path)
  file = Rack::File.new(nil)
  file.path = path

  return halt(file.serving(env))
end