class URI::Generic

Public Instance Methods

as_directory() click to toggle source

Converts the uri into directory form. @return [Generic]

directory path form
# File lib/pione/patch/uri-patch.rb, line 34
def as_directory
  if directory?
    self
  else
    self.clone.tap{|s| s.path = s.path + "/"}
  end
end
directory?() click to toggle source

Returns true if the path represents a directory. @return [Boolean]

true if the path represents a directory
# File lib/pione/patch/uri-patch.rb, line 20
def directory?
  path[-1] == '/'
end
file?() click to toggle source

Returns true if the path represents a file. @return [Boolean]

true if the path represents a file
# File lib/pione/patch/uri-patch.rb, line 27
def file?
  not(directory?)
end
pione?() click to toggle source

Returns true if the scheme is supportted by PIONE system. @return [Boolean]

true if the scheme is supportted by PIONE system
# File lib/pione/patch/uri-patch.rb, line 13
def pione?
  false
end