method

glob

v2_1_10 - Show latest stable - Class: Pathname
glob(p1, p2 = v2)
public

Returns or yields Pathname objects.

Pathname.glob("config/" "*.rb")
    #=> [#<Pathname:config/environment.rb>, #<Pathname:config/routes.rb>, ..]

See Dir.glob.