Method: Sass::Plugin::Rack#initialize

Defined in:
lib/sass/plugin/rack.rb

#initialize(app, dwell = 1.0) ⇒ Rack

Initialize the middleware.

Parameters:

  • app (#call)

    The Rack application

  • dwell (Float) (defaults to: 1.0)

    See #dwell



38
39
40
41
42
# File 'lib/sass/plugin/rack.rb', line 38

def initialize(app, dwell = 1.0)
  @app = app
  @dwell = dwell
  @check_after = Time.now.to_f
end