Class: Pathname

Inherits:
Object show all
Defined in:
lib/puppet/util/monkey_patches.rb

Instance Method Summary collapse

Instance Method Details

#absolute?Boolean

Returns:

  • (Boolean)

44
45
46
# File 'lib/puppet/util/monkey_patches.rb', line 44

def absolute?
  ABSOLUTE_PATH.match? @path
end

#relative?Boolean

Returns:

  • (Boolean)

48
49
50
# File 'lib/puppet/util/monkey_patches.rb', line 48

def relative?
  !absolute?
end