method
compile_path?
v3.2.1 -
Show latest stable
- Class:
Sprockets::StaticCompiler
compile_path?(logical_path)public
No documentation available.
# File actionpack/lib/sprockets/static_compiler.rb, line 43
def compile_path?(logical_path)
paths.each do |path|
case path
when Regexp
return true if path.match(logical_path)
when Proc
return true if path.call(logical_path)
else
return true if File.fnmatch(path.to_s, logical_path)
end
end
false
end