jem
notes
version 2
/ featuring
this entry
or
see all/search
apps
7
c
3
design
16
git
17
javascript
1
jquery
1
mac
16
math‑ish
3
matlab
2
mercurial
1
python
13
rails
13
random
18
ruby
38
tex
7
todo
4
tools
22
use‑this‑cmd
21
use‑this‑code
8
vim
16
writings
2
Feb 24
match file glob in ruby
ruby
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
'