class Less::Engine

The entry point to Less. By default Less doesn't preserve the filename of the file being parsed, which is unpleasant for error reporting. Our monkeypatch keeps it around.

Public Instance Methods

initialize(obj, opts = {}) click to toggle source
Also aliased as: initialize_without_sass
initialize_with_sass(obj, opts = {}) click to toggle source
# File lib/sass/less.rb, line 365
def initialize_with_sass(obj, opts = {})
  initialize_without_sass(obj, opts)
  @filename = obj.path if obj.is_a?(File)
end
Also aliased as: initialize
initialize_without_sass(obj, opts = {}) click to toggle source
Alias for: initialize
parse() click to toggle source
Also aliased as: parse_without_sass, to_tree
Alias for: parse_with_sass
parse_with_sass() click to toggle source
# File lib/sass/less.rb, line 372
def parse_with_sass
  parse_without_sass
rescue Sass::SyntaxError => e
  e.modify_backtrace(:filename => @filename)
  raise e
end
Also aliased as: parse
parse_without_sass() click to toggle source
Alias for: parse
to_tree() click to toggle source
Alias for: parse