lib/rack/less/base.rb in rack-less-1.4.0 vs lib/rack/less/base.rb in rack-less-1.5.0

- old
+ new

@@ -31,20 +31,20 @@ # => respond appropriately # Otherwise, call on up to the app as normal def call!(env) @default_options.each { |k,v| env[k] ||= v } @env = env - + if (@request = Request.new(@env.dup.freeze)).for_less? Response.new(@env.dup.freeze, @request.source.to_css).to_rack else @app.call(env) end end - + private - + def validate_options # ensure a root path is specified and does exists unless options.has_key?(option_name(:root)) and !options(:root).nil? raise(ArgumentError, "no :root option set") end @@ -53,8 +53,8 @@ # ensure a source path is specified and does exists unless options.has_key?(option_name(:source)) and !options(:source).nil? raise(ArgumentError, "no :source option set") end end - + end end \ No newline at end of file