edge badge
Methods
A
C
E
I
N
P
R
V
Instance Public methods
action()
# File actionpack/lib/action_dispatch/routing/inspector.rb, line 43
def action
  requirements[:action] || ':action'
end
constraints()
# File actionpack/lib/action_dispatch/routing/inspector.rb, line 11
def constraints
  requirements.except(:controller, :action)
end
controller()
# File actionpack/lib/action_dispatch/routing/inspector.rb, line 39
def controller
  requirements[:controller] || ':controller'
end
endpoint()
# File actionpack/lib/action_dispatch/routing/inspector.rb, line 7
def endpoint
  app.dispatcher? ? "#{controller}##{action}" : rack_app.inspect
end
engine?()
# File actionpack/lib/action_dispatch/routing/inspector.rb, line 51
def engine?
  rack_app.respond_to?(:routes)
end
internal?()
# File actionpack/lib/action_dispatch/routing/inspector.rb, line 47
def internal?
  controller.to_s =~ %r{\Arails/(info|mailers|welcome)} || path =~ %r{\A#{Rails.application.config.assets.prefix}\z}
end
name()
# File actionpack/lib/action_dispatch/routing/inspector.rb, line 27
def name
  super.to_s
end
path()
# File actionpack/lib/action_dispatch/routing/inspector.rb, line 23
def path
  super.spec.to_s
end
rack_app()
# File actionpack/lib/action_dispatch/routing/inspector.rb, line 15
def rack_app
  app.app
end
reqs()
# File actionpack/lib/action_dispatch/routing/inspector.rb, line 31
def reqs
  @reqs ||= begin
    reqs = endpoint
    reqs += " #{constraints}" unless constraints.empty?
    reqs
  end
end
verb()
# File actionpack/lib/action_dispatch/routing/inspector.rb, line 19
def verb
  super.source.gsub(/[$^]/, '')
end