Module: RubyCleanCSS::Exports::Path

Defined in:
lib/ruby-clean-css/exports.rb

Overview

:nodoc:

Class Method Summary collapse

Class Method Details

.dirname(path) ⇒ Object



71
72
73
# File 'lib/ruby-clean-css/exports.rb', line 71

def self.dirname(path)
  File.dirname(path)
end

.join(*components) ⇒ Object



65
66
67
68
# File 'lib/ruby-clean-css/exports.rb', line 65

def self.join(*components)
  # node.js expands path on join
  File.expand_path(File.join(*components))
end

.relative(base, path) ⇒ Object



81
82
83
# File 'lib/ruby-clean-css/exports.rb', line 81

def self.relative(base, path)
  Pathname.new(path).relative_path_from(Pathname.new(base)).to_s
end

.resolve(path) ⇒ Object



76
77
78
# File 'lib/ruby-clean-css/exports.rb', line 76

def self.resolve(path)
  File.expand_path(path)
end