module Roda::RodaPlugins::Path::InstanceMethods

def path(obj, *args)

:add_script_name option is true, this prepends the SCRIPT_NAME to the path.
had its class previously registered with the application. If the app's
Return a path based on the class of the object. The object passed must have
def path(obj, *args)
  app = self.class
  unless blk = app.path_block(obj.class)
    raise RodaError, "unrecognized object given to Roda#path: #{obj.inspect}"
  end
  path = instance_exec(obj, *args, &blk)
  path = request.script_name.to_s + path if app.opts[:add_script_name]
  path
end