Class: AssetPocket::Pocket::SassDefinitions

Inherits:
Definitions
  • Object
show all
Defined in:
lib/asset_pocket/pocket.rb

Instance Attribute Summary

Attributes inherited from Definitions

#compressor, #content, #filename, #pocket

Instance Method Summary collapse

Methods inherited from Definitions

#compress, #full_filename, #initialize, #process, #separator, #use, #use_compressor?

Constructor Details

This class inherits a constructor from AssetPocket::Pocket::Definitions

Instance Method Details

#import(filename) ⇒ Object



102
103
104
# File 'lib/asset_pocket/pocket.rb', line 102

def import(filename)
    @content << [ :string, "@import \"#{File.expand_path(filename, pocket.generator.root_path)}\";\n" ]
end

#post_process(generated_content) ⇒ Object



106
107
108
# File 'lib/asset_pocket/pocket.rb', line 106

def post_process(generated_content)
    SourceFilter::Sass.render("#{filename}.scss", generated_content)
end