Class: Pathname

Inherits:
Object show all
Defined in:
lib/whatthegem/core_ext.rb

Instance Method Summary collapse

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