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



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

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

.versionObject



26
27
28
# File 'lib/less.rb', line 26

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