Tilt::Template
# File lib/less/rails/import_processor.rb, line 22 def depend_on(scope, data, base=File.dirname(scope.logical_path)) import_paths = data.scan(IMPORT_SCANNER).flatten.compact.uniq import_paths.each do |path| pathname = PATHNAME_FINDER.call(scope,path) || PATHNAME_FINDER.call(scope, File.join(base, path)) scope.depend_on(pathname) if pathname && pathname.to_s.ends_with?('.less') depend_on scope, File.read(pathname), File.dirname(path) if pathname end data end
Generated with the Darkfish Rdoc Generator 2.