module RJack::TarPit::Util
Public Instance Methods
clean_list( l )
click to toggle source
Cleanup a list of files
# File lib/rjack-tarpit/util.rb, line 28 def clean_list( l ) Array( l ). compact. map { |f| f.strip }. reject { |f| f.empty? } end
read_file_list( sfile )
click to toggle source
Read a list of files and return a cleaned list.
# File lib/rjack-tarpit/util.rb, line 23 def read_file_list( sfile ) clean_list( open( sfile ) { |f| f.readlines } ) end