class Middleman::Sitemap::Extensions::RequestEndpoints

def endpoint(path, opts={}, &block)

def endpoint(path, opts={}, &block)
  if block_given?
    EndpointDescriptor.new(path, path, block)
  else
    EndpointDescriptor.new(path, opts[:path] || path, nil)
  end
end