instance method
compile_path?
Ruby on Rails 3.1.12
Since v3.1.12 Last seen in v3.1.12Signature
compile_path?(logical_path)
No documentation comment.
Parameters
-
logical_pathreq
Source
# File actionpack/lib/sprockets/static_compiler.rb, line 46
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
Defined in actionpack/lib/sprockets/static_compiler.rb line 46
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Sprockets::StaticCompiler