method

glob

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

Returns or yields Pathname objects.

Pathname.glob("lib/i*.rb")
    #=> [#<Pathname:lib/ipaddr.rb>, #<Pathname:lib/irb.rb>]

See Dir.glob.