class Pione::Location::LocalScheme

Local represents local file system path. @example

# absolute path form
local:/home/keita/

@example

# relative path form
local:./test.txt

Constants

COMPONENT

@api private

Public Class Methods

build(args) click to toggle source

@api private

Calls superclass method
# File lib/pione/location/local-scheme.rb, line 15
def self.build(args)
  super(URI::Util::make_components_hash(self, args))
end

Public Instance Methods

absolute() click to toggle source

Returns absolute path. @return [URI]

URI with absolute path
# File lib/pione/location/local-scheme.rb, line 22
def absolute
  uri = URI.parse("%s:%s" % [scheme, File.expand_path(path, Global.pwd)])
  directory? ? uri.as_directory : uri
end