Methods
Instance Public methods
action()
📝 Source code
# File actionpack/lib/action_dispatch/routing/inspector.rb, line 41
def action
parts.include?(:action) ? ":action" : requirements[:action]
end
🔎 See on GitHub
constraints()
📝 Source code
# File actionpack/lib/action_dispatch/routing/inspector.rb, line 13
def constraints
requirements.except(:controller, :action)
end
🔎 See on GitHub
controller()
📝 Source code
# File actionpack/lib/action_dispatch/routing/inspector.rb, line 37
def controller
parts.include?(:controller) ? ":controller" : requirements[:controller]
end
🔎 See on GitHub
endpoint()
📝 Source code
# File actionpack/lib/action_dispatch/routing/inspector.rb, line 9
def endpoint
app.dispatcher? ? "#{controller}##{action}" : rack_app.inspect
end
🔎 See on GitHub
engine?()
📝 Source code
# File actionpack/lib/action_dispatch/routing/inspector.rb, line 49
def engine?
app.engine?
end
🔎 See on GitHub
internal?()
📝 Source code
# File actionpack/lib/action_dispatch/routing/inspector.rb, line 45
def internal?
internal
end
🔎 See on GitHub
name()
📝 Source code
# File actionpack/lib/action_dispatch/routing/inspector.rb, line 25
def name
super.to_s
end
🔎 See on GitHub
path()
📝 Source code
# File actionpack/lib/action_dispatch/routing/inspector.rb, line 21
def path
super.spec.to_s
end
🔎 See on GitHub
rack_app()
📝 Source code
# File actionpack/lib/action_dispatch/routing/inspector.rb, line 17
def rack_app
app.rack_app
end
🔎 See on GitHub
reqs()
📝 Source code
# File actionpack/lib/action_dispatch/routing/inspector.rb, line 29
def reqs
@reqs ||= begin
reqs = endpoint
reqs += " #{constraints}" unless constraints.empty?
reqs
end
end
🔎 See on GitHub