Module: Tallyit::AddTally

Defined in:
lib/tallyit/add_tally.rb

Class Method Summary collapse

Class Method Details

.do(tally, file) ⇒ Object



3
4
5
6
7
# 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