URI is the uri being queried, base is where this path is mounted under?
# File lib/vpim/agent/calendars.rb, line 37 def initialize(uri, base = "") @uri = URI.parse(uri.to_s) #pp [uri, base, @uri] if @uri.path.size == 0 @uri.path = "/" end @path = Path.split_path(@uri.path) @base = base.to_str @mark = 0 @base.split.size.times{ shift } end
# File lib/vpim/agent/calendars.rb, line 65 def append(name, scheme = nil) uri = @uri.dup uri.path += "/" + CGI.escape(name) if scheme uri.scheme = scheme end uri end
# File lib/vpim/agent/calendars.rb, line 74 def prefix(len = nil) len ||= @mark @path[0, len].map{|p| CGI.escape(p)}.join("/") + "/" end
Generated with the Darkfish Rdoc Generator 2.