Skip to content

Commit

Permalink
Fix styling the Rack specification.
Browse files Browse the repository at this point in the history
  • Loading branch information
FooBarWidget committed Apr 25, 2009
1 parent bd523d1 commit 5611218
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/rack/lint.rb
Expand Up @@ -124,25 +124,25 @@ def check_env(env)
## standardized middleware APIs. None of these are required to
## be implemented by the server.

## <tt>rack.session</tt>:: A hash like interface for storing request session data
## <tt>rack.session</tt>:: A hash like interface for storing request session data.
## The store must implement:
if session = env['rack.session']
## store(key, value) (aliased as []=)
## store(key, value) (aliased as []=);
assert("session #{session.inspect} must respond to store and []=") {
session.respond_to?(:store) && session.respond_to?(:[]=)
}

## fetch(key, default = nil) (aliased as [])
## fetch(key, default = nil) (aliased as []);
assert("session #{session.inspect} must respond to fetch and []") {
session.respond_to?(:fetch) && session.respond_to?(:[])
}

## delete(key)
## delete(key);
assert("session #{session.inspect} must respond to delete") {
session.respond_to?(:delete)
}

## clear
## clear;
assert("session #{session.inspect} must respond to clear") {
session.respond_to?(:clear)
}
Expand Down

0 comments on commit 5611218

Please sign in to comment.