Module: Sass::Util
- Defined in:
- lib/sass/util.rb
Class Method Summary collapse
Class Method Details
.file_uri(path) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/sass/util.rb', line 7 def file_uri(path) absolute_path = File.absolute_path(path) unless absolute_path.start_with?('/') components = absolute_path.split File::SEPARATOR components[0] = components[0].split(':').first.downcase absolute_path = components.join File::SEPARATOR end "file://#{absolute_path}" end |
.now ⇒ Object
19 20 21 |
# File 'lib/sass/util.rb', line 19 def now (Time.now.to_f * 1000).to_i end |