Sha256: 2d7e02dff6965071a6d7ed61af1456d2dc7d8a1cc5faf7f736e8698cef694b17
Contents?: true
Size: 346 Bytes
Versions: 5
Compression:
Stored size: 346 Bytes
Contents
class Usher module Interface class RackInterface module Route # add("/index.html").redirect("/") def redirect(path, status = 302) lambda do response = Rack::Response.new response.redirect(path, status) response.finish end end end end end end
Version data entries
5 entries across 5 versions & 2 rubygems