Class: ActionDispatch::Routing::Mapper::Mapping
- Inherits:
-
Object
- Object
- ActionDispatch::Routing::Mapper::Mapping
- Defined in:
- actionpack/lib/action_dispatch/routing/mapper.rb
Overview
:nodoc:
Constant Summary
- IGNORE_OPTIONS =
[:to, :as, :via, :on, :constraints, :defaults, :only, :except, :anchor, :shallow, :shallow_path, :shallow_prefix]
Instance Method Summary (collapse)
-
- (Mapping) initialize(set, scope, path, options)
constructor
A new instance of Mapping.
- - (Object) to_route
Constructor Details
- (Mapping) initialize(set, scope, path, options)
A new instance of Mapping
47 48 49 50 51 52 |
# File 'actionpack/lib/action_dispatch/routing/mapper.rb', line 47 def initialize(set, scope, path, ) @set, @scope = set, scope @options = (@scope[:options] || {}).merge() @path = normalize_path(path) end |
Instance Method Details
- (Object) to_route
54 55 56 |
# File 'actionpack/lib/action_dispatch/routing/mapper.rb', line 54 def to_route [ app, conditions, requirements, defaults, @options[:as], @options[:anchor] ] end |