module RbFind::Csv
Public Class Methods
outfile(out) { || ... }
click to toggle source
# File lib/rbfind/csv.rb, line 43 def outfile out o, @outfile = @outfile, out yield ensure @outfile = o end
putl(l)
click to toggle source
# File lib/rbfind/csv.rb, line 40 def putl l @outfile << l << $/ end
Public Instance Methods
colsep(*args)
click to toggle source
# File lib/rbfind/csv.rb, line 13 def colsep *args csv COLON, *args end
Also aliased as: col_sep
csv(sep, *args)
click to toggle source
# File lib/rbfind/csv.rb, line 31 def csv sep, *args e = args.join sep Csv.putl e end
spcsep(*args)
click to toggle source
# File lib/rbfind/csv.rb, line 23 def spcsep *args csv " ", *args end
tabsep(*args)
click to toggle source
# File lib/rbfind/csv.rb, line 18 def tabsep *args csv "\t", *args end
Also aliased as: tab_sep