class BeamerRemote::Server

Public Instance Methods

back_path(path) click to toggle source
# File lib/beamer-remote/server.rb, line 16
def back_path(path)
  return if path == "/"

  File.expand_path(File.join(path, ".."))
end
url_for_path(path) click to toggle source
# File lib/beamer-remote/server.rb, line 10
def url_for_path(path)
  action = File.directory?(path) ? "browse" : "play"
  
  File.join("/", action, path)
end