ActionDispatch::Routing::RouteWrapper Ruby on Rails 5.1.2 Class ActionDispatch::Routing::RouteWrapper < SimpleDelegator actionpack/lib/action_dispatch/routing/inspector.rb Methods A action C constraints, controller E endpoint, engine? I internal? N name P path R rack_app, reqs Instance Public methods action() Link Source: show | on GitHub # File actionpack/lib/action_dispatch/routing/inspector.rb, line 39 def action parts.include?(:action) ? ":action" : requirements[:action] end constraints() Link Source: show | on GitHub # File actionpack/lib/action_dispatch/routing/inspector.rb, line 11 def constraints requirements.except(:controller, :action) end controller() Link Source: show | on GitHub # File actionpack/lib/action_dispatch/routing/inspector.rb, line 35 def controller parts.include?(:controller) ? ":controller" : requirements[:controller] end endpoint() Link Source: show | on GitHub # File actionpack/lib/action_dispatch/routing/inspector.rb, line 7 def endpoint app.dispatcher? ? "#{controller}##{action}" : rack_app.inspect end engine?() Link Source: show | on GitHub # File actionpack/lib/action_dispatch/routing/inspector.rb, line 47 def engine? rack_app.respond_to?(:routes) end internal?() Link Source: show | on GitHub # File actionpack/lib/action_dispatch/routing/inspector.rb, line 43 def internal? internal end name() Link Source: show | on GitHub # File actionpack/lib/action_dispatch/routing/inspector.rb, line 23 def name super.to_s end path() Link Source: show | on GitHub # File actionpack/lib/action_dispatch/routing/inspector.rb, line 19 def path super.spec.to_s end rack_app() Link Source: show | on GitHub # File actionpack/lib/action_dispatch/routing/inspector.rb, line 15 def rack_app app.app end reqs() Link Source: show | on GitHub # File actionpack/lib/action_dispatch/routing/inspector.rb, line 27 def reqs @reqs ||= begin reqs = endpoint reqs += " #{constraints}" unless constraints.empty? reqs end end