robie1373/ruth

View on GitHub
lib/ruth/logger.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Ruth
  class Logger
    def log(args)
      filename = args[:file]
      action = args[:action]
      time = args[:time]
      File.open(Common.log_file, 'a') { |f| f.write("#{filename} was #{action} at #{time}\n") }

    end
  end
end