class SassC::Rails::Importer::SassERBExtension
Experimental RBS support (using type sampling data from the type_fusion
project).
# sig/sassc/rails/importer.rbs class SassC::Rails::Importer::SassERBExtension < SassC::Rails::Importer::Extension def postfix: () -> String end
def import_for(full_path, parent_dir, options)
def import_for(full_path, parent_dir, options) template = Tilt::ERBTemplate.new(full_path) parsed_erb = template.render(options[:sprockets][:context], {}) parsed_scss = SassC::Sass2Scss.convert(parsed_erb) SassC::Importer::Import.new(full_path, source: parsed_scss) end
def postfix
Experimental RBS support (using type sampling data from the type_fusion
project).
def postfix: () -> String
This signature was generated using 1 sample from 1 application.
def postfix ".sass.erb" end