Class: Dir
- Inherits:
-
Object
- Object
- Dir
- Defined in:
- lib/lab42/core/dir.rb
Class Method Summary collapse
Class Method Details
.files(glob_para, &blk) ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 |
# File 'lib/lab42/core/dir.rb', line 2 def files glob_para, &blk glob( glob_para ).map do |f| full = File.join pwd, f next if File.directory? full [f, full] end .compact .tap do | result | result.each(&blk) if blk end end |