aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/routing.rb
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2007-01-26 21:37:38 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2007-01-26 21:37:38 +0000
commit0aa0c84c179e82a2c7d206e75a5d515b82deeba5 (patch)
treea4dc530a6a2248d7edaf1029124e126765327117 /actionpack/lib/action_controller/routing.rb
parent768b60e60d19b8940138d5f412fa79f074b5c123 (diff)
downloadrails-0aa0c84c179e82a2c7d206e75a5d515b82deeba5.tar.gz
rails-0aa0c84c179e82a2c7d206e75a5d515b82deeba5.tar.bz2
rails-0aa0c84c179e82a2c7d206e75a5d515b82deeba5.zip
Nodoc the irrelevant (from 1.2)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6044 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_controller/routing.rb')
-rw-r--r--actionpack/lib/action_controller/routing.rb24
1 files changed, 12 insertions, 12 deletions
diff --git a/actionpack/lib/action_controller/routing.rb b/actionpack/lib/action_controller/routing.rb
index 88b60396c6..4c6377eef7 100644
--- a/actionpack/lib/action_controller/routing.rb
+++ b/actionpack/lib/action_controller/routing.rb
@@ -25,7 +25,7 @@ class NilClass
end
end
-class Regexp
+class Regexp #:nodoc:
def number_of_captures
Regexp.new("|#{source}").match('').captures.length
end
@@ -306,7 +306,7 @@ module ActionController
end
end
- class Route
+ class Route #:nodoc:
attr_accessor :segments, :requirements, :conditions
def initialize
@@ -537,7 +537,7 @@ module ActionController
end
- class Segment
+ class Segment #:nodoc:
attr_accessor :is_optional
alias_method :optional?, :is_optional
@@ -592,7 +592,7 @@ module ActionController
end
end
- class StaticSegment < Segment
+ class StaticSegment < Segment #:nodoc:
attr_accessor :value, :raw
alias_method :raw?, :raw
@@ -626,7 +626,7 @@ module ActionController
end
end
- class DividerSegment < StaticSegment
+ class DividerSegment < StaticSegment #:nodoc:
def initialize(value = nil)
super(value)
self.raw = true
@@ -638,7 +638,7 @@ module ActionController
end
end
- class DynamicSegment < Segment
+ class DynamicSegment < Segment #:nodoc:
attr_accessor :key, :default, :regexp
def initialize(key = nil, options = {})
@@ -726,7 +726,7 @@ module ActionController
end
- class ControllerSegment < DynamicSegment
+ class ControllerSegment < DynamicSegment #:nodoc:
def regexp_chunk
possible_names = Routing.possible_controllers.collect { |name| Regexp.escape name }
"(?i-:(#{(regexp || Regexp.union(*possible_names)).source}))"
@@ -753,7 +753,7 @@ module ActionController
end
end
- class PathSegment < DynamicSegment
+ class PathSegment < DynamicSegment #:nodoc:
EscapedSlash = URI.escape("/")
def interpolation_chunk
"\#{URI.escape(#{local_name}.to_s).gsub(#{EscapedSlash.inspect}, '/')}"
@@ -783,7 +783,7 @@ module ActionController
end
end
- class RouteBuilder
+ class RouteBuilder #:nodoc:
attr_accessor :separators, :optional_separators
def initialize
@@ -959,13 +959,13 @@ module ActionController
end
end
- class RouteSet
+ class RouteSet #:nodoc:
# Mapper instances are used to build routes. The object passed to the draw
# block in config/routes.rb is a Mapper instance.
#
# Mapper instances have relatively few instance methods, in order to avoid
# clashes with named routes.
- class Mapper
+ class Mapper #:nodoc:
def initialize(set)
@set = set
end
@@ -994,7 +994,7 @@ module ActionController
# A NamedRouteCollection instance is a collection of named routes, and also
# maintains an anonymous module that can be used to install helpers for the
# named routes.
- class NamedRouteCollection
+ class NamedRouteCollection #:nodoc:
include Enumerable
attr_reader :routes, :helpers