module Tallyit::AddTally

Public Class Methods

do(tally, file) click to toggle source
# File lib/tallyit/add_tally.rb, line 3
def self.do(tally, file)
  File.open(file, 'a') do |file|
    file.puts "#{tally.type} | #{tally.amount} | #{tally.msg} | #{Time.now}"
  end
end