Skip to content

Commit

Permalink
Small docfixes
Browse files Browse the repository at this point in the history
darcs-hash:20070516143224-4fc50-a17a95bd812cca97f8c9a50dcf538cb5414af0c8.gz
  • Loading branch information
leahneukirchen committed May 16, 2007
1 parent e926df4 commit c5b420a
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions lib/rack/auth/basic.rb
Expand Up @@ -5,10 +5,10 @@ module Rack
module Auth
# Rack::Auth::Basic implements HTTP Basic Authentication, as per RFC 2617.
#
# Initialize with the [Rack] application that you want protecting,
# Initialize with the Rack application that you want protecting,
# and a block that checks if a username and password pair are valid.
#
# See also: example/protectedlobster.rb
# See also: <tt>example/protectedlobster.rb</tt>

class Basic < AbstractHandler

Expand Down
2 changes: 1 addition & 1 deletion lib/rack/handler/fastcgi.rb
Expand Up @@ -9,7 +9,7 @@ def self.run(app, options=nil)
}
end

module ProperStream
module ProperStream # :nodoc:
def each # This is missing by default.
while line = gets
yield line
Expand Down
2 changes: 1 addition & 1 deletion lib/rack/showexceptions.rb
Expand Up @@ -60,7 +60,7 @@ def pretty(env, exception)
[@template.result(binding)]
end

def h(obj)
def h(obj) # :nodoc:
case obj
when String
Utils.escape_html(obj)
Expand Down
8 changes: 4 additions & 4 deletions lib/rack/showstatus.rb
Expand Up @@ -6,9 +6,9 @@ module Rack
# Rack::ShowStatus catches all empty responses the app it wraps and
# replaces them with a site explaining the error.
#
# Additional details can be put into rack.showstatus.detail and will
# be shown as HTML. If such details exist, the error page is always
# rendered, even if the reply was not empty.
# Additional details can be put into <tt>rack.showstatus.detail</tt>
# and will be shown as HTML. If such details exist, the error page
# is always rendered, even if the reply was not empty.

class ShowStatus
def initialize(app)
Expand All @@ -31,7 +31,7 @@ def call(env)
end
end

def h(obj)
def h(obj) # :nodoc:
case obj
when String
Utils.escape_html(obj)
Expand Down
2 changes: 1 addition & 1 deletion lib/rack/utils.rb
Expand Up @@ -27,7 +27,7 @@ def unescape(s)
# Parses a query string by breaking it up at the '&'
# and ';' characters. You can also use this to parse
# cookies by changing the characters used in the second
# parameter (which defaults to '&;'.
# parameter (which defaults to '&;').

def parse_query(qs, d = '&;')
params = {}
Expand Down

0 comments on commit c5b420a

Please sign in to comment.