Browse files

Minor RDoc fix for Rack::ReponseCache#initialize

  • Loading branch information...
1 parent d9d2b1b commit 40dc4d5f98ff2c4a33813834f7deba538c911cc2 @jeremyevans jeremyevans committed with rtomayko Feb 9, 2009
Showing with 2 additions and 3 deletions.
  1. +2 −3 lib/rack/contrib/response_cache.rb
@@ -23,13 +23,12 @@ class Rack::ResponseCache
- # Initialize a new DiskCache object with the given arguments. Either
- # a dir or a block must be provided. Arguments:
+ # Initialize a new ReponseCache object with the given arguments. Arguments:
# * app : The next middleware in the chain. This is always called.
# * cache : The place to cache responses. If a string is provided, a disk
# cache is used, and all cached files will use this directory as the root directory.
# If anything other than a string is provided, it should respond to []=, which will
- # be called a path string and a body value (the 3rd part of a rack response).
+ # be called with a path string and a body value (the 3rd element of the response).
# * &block : If provided, it is called with the environment and the response from the next middleware.
# It should return nil or false if the path should not be cached, and should return
# the pathname to use as a string if the result should be cached.

0 comments on commit 40dc4d5

Please sign in to comment.