Class: Sass::Importers::Filesystem Private

Inherits:
Object
  • Object
show all
Defined in:
lib/nanoc/filters/sass/sass_filesystem_importer.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Method Summary collapse

Instance Method Details

#_find(dir, name, options) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/nanoc/filters/sass/sass_filesystem_importer.rb', line 5

def _find(dir, name, options)
  # Find filename
  full_filename, _syntax = ::Sass::Util.destructure(find_real_file(dir, name, options))
  return nil if full_filename.nil?

  # Create dependency
  filter = options[:nanoc_current_filter]
  if filter
    item = filter.imported_filename_to_item(full_filename)
    filter.depend_on([item]) unless item.nil?
  end

  # Call original _find
  _orig_find(dir, name, options)
end

#_orig_findObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



3
# File 'lib/nanoc/filters/sass/sass_filesystem_importer.rb', line 3

alias _orig_find _find