Class: Dir

Inherits:
Object
  • Object
show all
Defined in:
lib/required/ruby_core_mods.rb

Instance Method Summary collapse

Instance Method Details

#filter(regex) ⇒ Object



2
3
4
5
6
# File 'lib/required/ruby_core_mods.rb', line 2

def filter(regex)
  self.select do |x|
    x =~ regex
  end
end