Permalink
Browse files

Explain the usefulness of the to_path method of the body.

  • Loading branch information...
1 parent 5611218 commit e7b9123247af311e6f5a93e8cd838ea89e2af8cc @FooBarWidget FooBarWidget committed Apr 25, 2009
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/rack/lint.rb
View
@@ -505,7 +505,9 @@ def each
##
## If the Body responds to +to_path+, it must return a String
## identifying the location of a file whose contents are identical
- ## to that produced by calling +each+.
+ ## to that produced by calling +each+; this may be used by the
+ ## server as an alternative, possibly more efficient way to
+ ## transport the response.
if @body.respond_to?(:to_path)
assert("The file identified by body.to_path does not exist") {

1 comment on commit e7b9123

Contributor

rtomayko commented on e7b9123 Apr 26, 2009

Nice! Thanks.

Please sign in to comment.