class YARD::Server::DocServerSerializer

static relative paths to files on disk.
A custom {Serializers::Base serializer} which returns resource URLs instead of

def initialize(_command = nil)

def initialize(_command = nil)
  super(:basepath => '', :extension => '')
end

def serialized_path(object)

def serialized_path(object)
  case object
  when CodeObjects::RootObject
    "toplevel"
  when CodeObjects::ExtendedMethodObject
    serialized_path(object.namespace) + ':' + urlencode(object.name.to_s)
  when CodeObjects::MethodObject
    serialized_path(object.namespace) +
      (object.scope == :instance ? ":" : ".") + urlencode(object.name.to_s)
  when CodeObjects::ConstantObject, CodeObjects::ClassVariableObject
    serialized_path(object.namespace) + "##{object.name}-#{object.type}"
  when CodeObjects::ExtraFileObject
    super(object).gsub(/^file\./, 'file/')
  else
    super(object)
  end
end

def urlencode(name)

def urlencode(name)
  if name.respond_to?(:force_encoding)
    name = name.dup.force_encoding('binary')
  end
  Templates::Helpers::HtmlHelper.urlencode(name)
end