class ActionDispatch::Routing::RouteWrapper

:nodoc:

def action

def action
  parts.include?(:action) ? ":action" : requirements[:action]
end

def constraints

def constraints
  requirements.except(:controller, :action)
end

def controller

def controller
  parts.include?(:controller) ? ":controller" : requirements[:controller]
end

def endpoint

:nodoc:
def endpoint
  app.dispatcher? ? "#{controller}##{action}" : rack_app.inspect
end

def engine?

def engine?
  app.engine?
end

def internal?

def internal?
  internal
end

def name

def name
  super.to_s
end

def path

def path
  super.spec.to_s
end

def rack_app

def rack_app
  app.rack_app
end

def reqs

def reqs
  @reqs ||= begin
    reqs = endpoint
    reqs += " #{constraints}" unless constraints.empty?
    reqs
  end
end