Class: Fewer::Engines::Less

Inherits:
Abstract show all
Defined in:
lib/fewer/engines/less.rb

Instance Attribute Summary

Attributes inherited from Abstract

#names, #root

Instance Method Summary collapse

Methods inherited from Abstract

#check_paths!, #initialize, #mtime, #paths

Constructor Details

This class inherits a constructor from Fewer::Engines::Abstract

Instance Method Details

#content_typeObject



6
7
8
# File 'lib/fewer/engines/less.rb', line 6

def content_type
  'text/css'
end

#extensionObject



10
11
12
# File 'lib/fewer/engines/less.rb', line 10

def extension
  '.less'
end

#readObject



14
15
16
# File 'lib/fewer/engines/less.rb', line 14

def read
  ::Less::Engine.new(super).to_css
end