Class: Sass::Engine
- Inherits:
-
Object
- Object
- Sass::Engine
- Defined in:
- lib/cyborg/sass/engine.rb
Overview
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
Instance Method Summary collapse
-
#initialize(template, options = {}) ⇒ Engine
constructor
A new instance of Engine.
- #initialize_without_yaml_importer ⇒ Object
Constructor Details
#initialize(template, options = {}) ⇒ Engine
Returns a new instance of Engine.
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/cyborg/sass/engine.rb', line 9 def initialize(template, ={}) initialize_without_yaml_importer(template, ) yaml_importer = self.[:load_paths].find {|lp| lp.is_a?(Cyborg::Importer) } unless yaml_importer root = File.dirname([:filename] || ".") plugin_root = Cyborg.plugin.stylesheets.base self.[:load_paths] << Cyborg::Importer.new(root) self.[:load_paths] << Cyborg::Importer.new(plugin_root) end end |
Instance Method Details
#initialize_without_yaml_importer ⇒ Object
7 |
# File 'lib/cyborg/sass/engine.rb', line 7 alias initialize_without_yaml_importer initialize |