Flowdock
method

glob

Importance_1
Ruby latest stable (v2_5_5) - 0 notes - Class: Pathname
glob(p1, p2 = v2) public

Returns or yields Pathname objects.

Pathname("ruby-2.4.2").glob("R*.md")
#=> [#<Pathname:ruby-2.4.2/README.md>, #<Pathname:ruby-2.4.2/README.ja.md>]

See Dir.glob. This method uses the base keyword argument of Dir.glob.

Show source
Register or log in to add new notes.