Sha256: 1860185b961cab8b7e281a5b2b74aa06bc11ecb5945c854a6392d3407c484258

Contents?: true

Size: 886 Bytes

Versions: 3

Compression:

Stored size: 886 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')

$LESS_LOAD_PATH = []

$:.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 & 2 rubygems

Version Path
lesslateral-1.2.21 lib/less.rb
less-1.2.21 lib/less.rb
less-1.2.20 lib/less.rb