Class: Hassle

Inherits:
Object
  • Object
show all
Defined in:
lib/hassle.rb

Defined Under Namespace

Classes: Compiler

Instance Method Summary collapse

Constructor Details

#initialize(app) ⇒ Hassle

Returns a new instance of Hassle.



6
7
8
9
10
11
12
# File 'lib/hassle.rb', line 6

def initialize(app)
  compiler = Hassle::Compiler.new
  compiler.compile
  @static = Rack::Static.new(app,
                             :urls => compiler.stylesheets,
                             :root => compiler.compile_location)
end

Instance Method Details

#call(env) ⇒ Object



14
15
16
# File 'lib/hassle.rb', line 14

def call(env)
  @static.call(env)
end