diff options
Diffstat (limited to 'actionpack/lib/action_controller/routing.rb')
-rw-r--r-- | actionpack/lib/action_controller/routing.rb | 24 |
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 |