Class: RailsExportRoutes::RouteWrapper
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- RailsExportRoutes::RouteWrapper
- Defined in:
- lib/rails_export_routes/route_wrapper.rb
Instance Method Summary collapse
Instance Method Details
#action ⇒ Object
15 16 17 |
# File 'lib/rails_export_routes/route_wrapper.rb', line 15 def action requirements[:action] end |
#constraints ⇒ Object
19 20 21 |
# File 'lib/rails_export_routes/route_wrapper.rb', line 19 def constraints requirements.except(:controller, :action) end |
#controller ⇒ Object
11 12 13 |
# File 'lib/rails_export_routes/route_wrapper.rb', line 11 def controller requirements[:controller] end |
#path_spec ⇒ Object
7 8 9 |
# File 'lib/rails_export_routes/route_wrapper.rb', line 7 def path_spec path.spec.to_s end |