Sha256: 9c07f17a9ac05424f42245d65836aa5dc1ea028dfb86c9cf71000119411b597e

Contents?: true

Size: 864 Bytes

Versions: 3

Compression:

Stored size: 864 Bytes

Contents

require 'cgi'
require 'treetop'
require 'mutter'
require 'delegate'

LESS_ROOT = File.expand_path(File.dirname(__FILE__))
LESS_PARSER = File.join(LESS_ROOT, 'less', 'engine', 'parser.rb')
LESS_GRAMMAR = File.join(LESS_ROOT, 'less', 'engine', 'grammar')

$:.unshift File.dirname(__FILE__)

require 'less/ext'
require 'less/command'
require 'less/engine'

module Less
  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)

  $verbose = false

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

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
less-1.2.19 lib/less.rb
less-1.2.18 lib/less.rb
less-1.2.17 lib/less.rb