Class: SassC::Rails::Importer::CssSassExtension
Instance Method Summary
collapse
Methods inherited from Extension
#initialize
Instance Method Details
#import_for(full_path, _parent_dir, _options) ⇒ Object
47
48
49
50
51
|
# File 'lib/sassc/rails/importer.rb', line 47
def import_for(full_path, _parent_dir, _options)
sass = File.binread(full_path)
parsed_scss = SassC::Sass2Scss.convert(sass)
SassC::Importer::Import.new(full_path, source: parsed_scss)
end
|
#postfix ⇒ Object
43
44
45
|
# File 'lib/sassc/rails/importer.rb', line 43
def postfix
'.css.sass'
end
|