<p>For this directory structure:</p>

<pre><code>.
|-- README.txt
|-- firstlevel.rb
`-- lib
    |-- models
    |   |-- foo
    |   |   `-- fourthlevel.rb
    |   `-- thirdlevel.rb
    `-- secondlevel.rb

3 directories, 5 files
</code></pre>

<p>The glob would match: </p>

<pre><code>firstlevel.rb 
lib/secondlevel.rb 
lib/models/thirdlevel.rb
lib/models/foo/fourthlevel.rb
</code></pre>

In Ruby itself:
```
```
Dir.glob('**/*.rb') perhaps?
```
```