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.
# 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
# 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
Generated with the Darkfish Rdoc Generator 2.