Method: FileList#partition
- Defined in:
- lib/filelist.rb
#partition(&block) ⇒ Object
FileList version of partition. Needed because the nested arrays should be FileLists in this version.
343 344 345 346 347 348 349 350 |
# File 'lib/filelist.rb', line 343 def partition(&block) # :nodoc: resolve result = @items.partition(&block) [ FileList.new.import(result[0]), FileList.new.import(result[1]), ] end |