Class: Chuusha::Rack
- Inherits:
-
Object
- Object
- Chuusha::Rack
- Defined in:
- lib/chuusha.rb
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app, root_dir, config = nil, output_dir = nil) ⇒ Rack
constructor
A new instance of Rack.
Constructor Details
#initialize(app, root_dir, config = nil, output_dir = nil) ⇒ Rack
Returns a new instance of Rack.
7 8 9 10 11 12 13 |
# File 'lib/chuusha.rb', line 7 def initialize(app, root_dir, config=nil, output_dir = nil) @app = app @root_dir = root_dir @config = Config.new(config) @output_dir = output_dir || root_dir cache_everything if @config.cache_on_load? end |