Skip to content

Commit

Permalink
Small doc fixes. Especially X = module Controllers; self;end was brea…
Browse files Browse the repository at this point in the history
…king rdoc
  • Loading branch information
Jonas Pfenniger authored and _why committed Jul 7, 2008
1 parent 3c19581 commit 60c72e2
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions lib/camping-unabridged.rb
Original file line number Diff line number Diff line change
Expand Up @@ -454,13 +454,7 @@ def service(*a)
# If no route is set, Camping will guess the route from the class name.
# The rule is very simple: the route becomes a slash followed by the lowercased
# class name. See Controllers::D for the complete rules of dispatch.
#
# == Special classes
#
# There are two special classes used for handling 404 and 500 errors. The
# NotFound class handles URLs not found. The ServerError class handles exceptions
# uncaught by your application.
X = module Controllers
module Controllers
@r = []
class << self
def r #:nodoc:
Expand Down Expand Up @@ -537,13 +531,11 @@ def M #:nodoc:
end
end
# Internal controller with no route. Used by #D and C.run to show internal messages.
class I < R()
end
self
end
X = Controllers
class << self
# When you are running many applications, you may want to create independent
Expand All @@ -561,6 +553,9 @@ def goes(m)
eval S.gsub(/Camping/,m.to_s), TOPLEVEL_BINDING
end
# Ruby web servers use this method to enter the Camping realm. The e
# argument is the environment variables hash as per the Rack specification.
# And array with [statuc, headers, body] is expected at the output.
def call(e)
X.M
e = H[e.to_hash]
Expand Down

0 comments on commit 60c72e2

Please sign in to comment.