module SendFile
Public Instance Methods
send_file(path)
click to toggle source
# File lib/cuba/send_file.rb, line 2 def send_file(path) file = Rack::File.new(nil) file.path = path halt(file.serving(env)) end