Class: SassC::Rails::Importer::CssScssExtension

Inherits:
Extension
  • Object
show all
Defined in:
lib/sassc/rails/importer.rb

Instance Method Summary collapse

Methods inherited from Extension

#initialize

Constructor Details

This class inherits a constructor from SassC::Rails::Importer::Extension

Instance Method Details

#import_for(full_path, parent_dir, options) ⇒ Object



36
37
38
39
# File 'lib/sassc/rails/importer.rb', line 36

def import_for(full_path, parent_dir, options)
  source = File.open(full_path, 'rb') { |f| f.read }
  SassC::Importer::Import.new(full_path, source: source)
end

#postfixObject



32
33
34
# File 'lib/sassc/rails/importer.rb', line 32

def postfix
  ".css.scss"
end