class Autodrop::FileLogger
Public Class Methods
new(file)
click to toggle source
# File autodrop, line 26 def initialize file @file = open file, "a+" end
Public Instance Methods
log(msg)
click to toggle source
# File autodrop, line 29 def log msg @file.puts "#{Time.now}: #{msg}" @file.flush end