Class: Dir

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

Class Method Summary collapse

Class Method Details

.[](params) ⇒ Object



6
7
8
9
10
# File 'lib/dappgen.rb', line 6

def self.[](params)
  Dir.glob(params, File::FNM_DOTMATCH).reject do |x|
    x.end_with?('/..') || x.end_with?('/.')
  end
end