Method: VMC::Client.path

Defined in:
lib/vmc/client.rb

.path(*path) ⇒ Object



329
330
331
332
333
# File 'lib/vmc/client.rb', line 329

def self.path(*path)
  path.flatten.collect { |x|
    URI.encode x, Regexp.new("[^#{URI::PATTERN::UNRESERVED}]")
  }.join("/")
end