Class: Pathname
Instance Method Summary collapse
-
#glob(pattern) ⇒ Object
exists in Ruby 2.5, but not in backports.
Instance Method Details
#glob(pattern) ⇒ Object
exists in Ruby 2.5, but not in backports
17 18 19 |
# File 'lib/whatthegem/core_ext.rb', line 17 def glob(pattern) # exists in Ruby 2.5, but not in backports Dir.glob(self./(pattern).to_s).map(&Pathname.method(:new)) end |