Sha256: 9e9b46caf72fff7985755a9764b75b99eb4f96b7369d02605e8f0e8d82a340e6
Contents?: true
Size: 426 Bytes
Versions: 2
Compression:
Stored size: 426 Bytes
Contents
require 'rack' module Helios class Helios::Application def initialize(app = nil, options = {}, &block) map = {} map['/'] = Helios::Backend.new(&block) map['/admin'] = Helios::Frontend.new if options.fetch(:frontend, true) @app = Rack::URLMap.new(map) end def call(env) @app.call(env) end end end require 'helios/backend' require 'helios/frontend' require 'helios/version'
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
helios-0.2.0 | ./lib/helios.rb |
helios-0.1.1 | ./lib/helios.rb |