method
compile_glob
v4.2.1 -
Show latest stable
- Class:
ActiveSupport::FileUpdateChecker
compile_glob(hash)private
No documentation available.
# File activesupport/lib/active_support/file_update_checker.rb, line 117
def compile_glob(hash)
hash.freeze # Freeze so changes aren't accidentally pushed
return if hash.empty?
globs = hash.map do |key, value|
"#{escape(key)}/**/*#{compile_ext(value)}"
end
"{#{globs.join(",")}}"
end