Class: Build::URI::Relative

Inherits:
Struct
  • Object
show all
Includes:
Base
Defined in:
lib/build/uri/relative.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Base

#+, #basename, #dirname, #merge

Instance Attribute Details

#pathObject Also known as: to_s

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



23
24
25
# File 'lib/build/uri/relative.rb', line 23

def path
  @path
end

Instance Method Details

#absolute?Boolean

Returns:

  • (Boolean)


26
27
28
# File 'lib/build/uri/relative.rb', line 26

def absolute?
	false
end

#local?Boolean

Returns:

  • (Boolean)


30
31
32
# File 'lib/build/uri/relative.rb', line 30

def local?
	true
end

#to_pathObject



36
37
38
39
# File 'lib/build/uri/relative.rb', line 36

def to_path
	# TODO Convert SEPARATOR to File::SEPARATOR?
	@path
end