Christian Madsen
9/27/2006 7:28:00 PM
I found a funny feature of Ruby tonight: if possible, commandline
arguments are automatically globbed. For instance in a directory with
one file foo.bar:
test.rb *.bar
=> ARGV = ['foo.bar']
test.rb *.html
=> ARGV = ['*.html']
Even the ** kind of globbing works.
I've tried to search google and the pickaxe book, but haven't found any
documentation on this feature.
Comments are appreciated.
-Christian