class WriteLog
Public Class Methods
new(fn)
click to toggle source
# File lib/roma/tools/log_merger.rb 54 def initialize(fn) 55 if fn == $stdout then 56 @f = $stdout 57 else 58 @f = open(fn, "w") 59 end 60 end
Public Instance Methods
close_file()
click to toggle source
# File lib/roma/tools/log_merger.rb 67 def close_file 68 unless @f.closed? 69 @f.close 70 end 71 end
write_line(th, l)
click to toggle source
# File lib/roma/tools/log_merger.rb 62 def write_line(th, l) 63 buff = th << ',' << l 64 @f.write(buff) 65 end