Module: Less::Loader::Path

Defined in:
lib/less/loader.rb

Overview

stubbed JS modules (required by less.js) :

Class Method Summary collapse

Class Method Details

.basename(path) ⇒ Object



61
62
63
# File 'lib/less/loader.rb', line 61

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

.dirname(path) ⇒ Object



57
58
59
# File 'lib/less/loader.rb', line 57

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

.extname(path) ⇒ Object



65
66
67
# File 'lib/less/loader.rb', line 65

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

.join(*components) ⇒ Object

:nodoc:



52
53
54
55
# File 'lib/less/loader.rb', line 52

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

.resolve(path) ⇒ Object



69
70
71
# File 'lib/less/loader.rb', line 69

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