Sha256: bfaafa1c2db9506638dde6ab7fb196f5b1d45c92b9a833b4b001d06d9175195d

Contents?: true

Size: 516 Bytes

Versions: 1

Compression:

Stored size: 516 Bytes

Contents

# encoding: utf-8

class ::Sass::Importers::Filesystem
  alias_method :_orig_find, :_find

  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]
    item = filter.imported_filename_to_item(full_filename)
    filter.depend_on([item]) unless item.nil?

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
nanoc-3.7.5 lib/nanoc/filters/sass/sass_filesystem_importer.rb