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
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
46 47 48 49 50 51 |
# File 'actionpack/lib/action_dispatch/routing/mapper.rb', line 46 def initialize(set, scope, path, ) @set, @scope = set, scope @options = (@scope[:options] || {}).merge() @path = normalize_path(path) end |
Instance Method Details
- (Object) to_route
53 54 55 |
# File 'actionpack/lib/action_dispatch/routing/mapper.rb', line 53 def to_route [ app, conditions, requirements, defaults, @options[:as], @options[:anchor] ] end |