Method: Rack::Lint#initialize

Defined in:
lib/rack/lint.rb

#initialize(app) ⇒ Lint

N.B. The empty ‘##` comments creates paragraphs in the output. A trailing “" is used to escape the newline character, which combines the comments into a single paragraph.

Rack Specification

This specification aims to formalize the Rack protocol. You can (and should) use Rack::Lint to enforce it. When you develop middleware, be sure to test with Rack::Lint to catch possible violations of this specification.

The Application

A Rack application is a Ruby object that responds to call. \

Raises:



65
66
67
68
69
# File 'lib/rack/lint.rb', line 65

def initialize(app)
  raise LintError, "app must respond to call" unless app.respond_to?(:call)

  @app = app
end