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

def endpoint
  case
  when app.dispatcher?
    "#{controller}##{action}"
  when rack_app.is_a?(Proc)
    "Inline handler (Proc/Lambda)"
  else
    rack_app.inspect
  end
end

def engine?

def engine?
  app.engine?
end

def internal?

def internal?
  internal
end

def matches_filter?(filter, value)

:nodoc:
def matches_filter?(filter, value)
  return __getobj__.path.match(value) if filter == :exact_path_match
  value.match?(public_send(filter))
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