Module: Less::Loader::FS

Defined in:
lib/less/loader.rb

Overview

:nodoc:

Class Method Summary collapse

Class Method Details

.readFile(path, encoding, callback) ⇒ Object



93
94
95
# File 'lib/less/loader.rb', line 93

def self.readFile(path, encoding, callback)
  callback.call(nil, File.read(path))
end

.readFileSync(path, encoding = nil) ⇒ Object



97
98
99
100
# File 'lib/less/loader.rb', line 97

def self.readFileSync(path, encoding = nil)
  buf = Buffer.new(File.read(path),  encoding)
  encoding.nil? ? buf : buf.toString(encoding)
end

.statSync(path) ⇒ Object



89
90
91
# File 'lib/less/loader.rb', line 89

def self.statSync(path)
  File.stat(path)
end