Object
# File lib/sinatra/rack_date.rb, line 26 def initialize(app, no_cache_control = nil, cache_control = nil) @app = app end
# File lib/sinatra/rack_date.rb, line 30 def call(env) status, headers, body = @app.call(env) headers['Date'] = Time.new.httpdate if not headers['Date'] [status, headers, body] end
[Validate]
Generated with the Darkfish Rdoc Generator 2.