jemnotesversion 2 / featuring this entry or see all/search

Feb 24
To retrieve a list of files matching a certain pattern, and/or in a certain directory, use Dir.glob.
Two examples:
Dir.glob 'dir/*'
Dir.glob 'dir/*.rb'