Method: CabbageDoc.glob
- Defined in:
- lib/cabbage_doc.rb
.glob(*args) ⇒ Object
40 41 42 43 44 45 46 |
# File 'lib/cabbage_doc.rb', line 40 def glob(*args) proc do arr = args.first arr = [args] unless arr.is_a?(Array) arr.map { |segs| Dir.glob(File.join(*Array(segs))) }.flatten.sort.reverse end end |