45 46 47 48 49 50 51 52 53 54 55
# File 'lib/standard/facets/pathname/glob.rb', line 45 def glob_flags(opts) flags = 0 opts.each do |opt| case opt when Symbol, String flags += ::File.const_get("FNM_#{opt}".upcase) else flags += opt end end flags end