Method: Pa::Directory::ClassMethods#glob
- Defined in:
- lib/pa/directory.rb
#glob(*args, &blk) ⇒ Object
61 62 63 64 65 66 67 68 69 70 71 |
# File 'lib/pa/directory.rb', line 61 def glob(*args, &blk) args, o = Util.(args) ret = [] blk ||= proc { |path| path } glob2 *args, o do |path| ret << blk.call(Pa(path)) end ret end |