Class: SassC::ImportHandler
- Inherits:
-
Object
- Object
- SassC::ImportHandler
- Defined in:
- lib/sassc/import_handler.rb
Instance Method Summary collapse
-
#initialize(options) ⇒ ImportHandler
constructor
A new instance of ImportHandler.
- #setup(native_options) ⇒ Object
Constructor Details
#initialize(options) ⇒ ImportHandler
Returns a new instance of ImportHandler.
3 4 5 6 7 8 9 |
# File 'lib/sassc/import_handler.rb', line 3 def initialize() @importer = if [:importer] [:importer].new() else nil end end |
Instance Method Details
#setup(native_options) ⇒ Object
11 12 13 14 15 16 17 18 19 20 |
# File 'lib/sassc/import_handler.rb', line 11 def setup() return unless @importer importer_callback = Native.make_importer(import_function, nil) list = Native.make_function_list(1) Native::function_set_list_entry(list, 0, importer_callback) Native.option_set_c_importers(, list) end |