class Sass::Engine

Taken from github.com/chriseppstein/sass-css-importer/blob/master/lib/sass/css_importer/monkey_patches.rb TODO: This feels wrong, surely there must be a better way to handle this

Public Class Methods

new(template, options={}) click to toggle source
# File lib/graphite/monkeypatch.rb, line 9
def initialize(template, options={})
    initialize_without_graphite_importer(template, options)

    graphite_importer = self.options[:load_paths].find {|lp| lp.is_a?(Graphite::Importer) }

    unless graphite_importer
        root = File.dirname(options[:filename] || ".")
        self.options[:load_paths] << Graphite::Importer.new(root)
    end
end

Public Instance Methods

initialize_without_graphite_importer(template, options={})
Alias for: new