Skip to content

Commit

Permalink
More doc fixes. Camping::X::M doc restored
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonas Pfenniger authored and _why committed Jul 7, 2008
1 parent 60c72e2 commit 74f4a3d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/camping-unabridged.rb
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,7 @@ def service(*a)
module Controllers
@r = []
class << self
# An array containing the various controllers available for dispatch.
def r #:nodoc:
@r
end
Expand Down Expand Up @@ -509,6 +510,7 @@ def D(p, m)
[I, 'r404', p]
end
N = H.new { |_,x| x.downcase }.merge! "N" => '(\d+)', "X" => '(\w+)', "Index" => ''
# The route maker, this is called by Camping internally, you shouldn't need to call it.
#
# Still, it's worth know what this method does. Since Ruby doesn't keep track of class
Expand All @@ -518,7 +520,6 @@ def D(p, m)
#
# Anyway, if you are calling the URI dispatcher from outside of a Camping server, you'll
# definitely need to call this at least once to set things up.
N = H.new { |_,x| x.downcase }.merge! "N" => '(\d+)', "X" => '(\w+)', "Index" => ''
def M
def M #:nodoc:
end
Expand All @@ -531,7 +532,7 @@ def M #:nodoc:
end
end
# Internal controller with no route. Used by #D and C.run to show internal messages.
# Internal controller with no route. Used by #D and C.call to show internal messages.
class I < R()
end
end
Expand Down

0 comments on commit 74f4a3d

Please sign in to comment.