Module: Less

Defined in:
lib/less.rb,
lib/less/engine.rb,
lib/less/command.rb,
lib/less/engine/nodes/entity.rb,
lib/less/engine/nodes/element.rb,
lib/less/engine/nodes/literal.rb,
lib/less/engine/nodes/ruleset.rb,
lib/less/engine/nodes/function.rb,
lib/less/engine/nodes/property.rb,
lib/less/engine/nodes/selector.rb

Defined Under Namespace

Modules: Functions, Node Classes: Command, Engine

Constant Summary collapse

MixedUnitsError =
Class.new(RuntimeError)
PathError =
Class.new(RuntimeError)
VariableNameError =
Class.new(NameError)
MixinNameError =
Class.new(NameError)
SyntaxError =
Class.new(RuntimeError)
ImportError =
Class.new(RuntimeError)
CompileError =
Class.new(RuntimeError)

Class Method Summary collapse

Class Method Details

.parse(less) ⇒ Object



33
34
35
# File 'lib/less.rb', line 33

def self.parse less
  Engine.new(less).to_css
end

.versionObject



29
30
31
# File 'lib/less.rb', line 29

def self.version
  File.read( File.join( File.dirname(__FILE__), '..', 'VERSION') ).strip
end