Without hitting the filesystem, is it possible to see whether the glob \"foo*\" would match \"food\" in Ruby?
\"foo*\"
\"food\"
Background:
Yes, it is possible using the fnmatch method:
File.fnmatch("foo*", "food") #=> true