Sha256: 3290f2cce4a03fc2e902f6afc04614ea3f520e15c62b55b8882f7038d980b147
Contents?: true
Size: 372 Bytes
Versions: 20
Compression:
Stored size: 372 Bytes
Contents
# encoding: utf-8 require "rack" # class App # extend Rango::Utils # def load_rackup # super(File.join(File.join(self.root, "config.ru")), "config.ru") # end # end module Rango module Utils extend self def load_rackup(path = "config.ru") eval("Rack::Builder.new {( #{File.read(path)}\n )}.to_app", nil, File.expand_path(path)) end end end
Version data entries
20 entries across 20 versions & 1 rubygems