From 1a7ac96684c6c1e99d73ef15e5d2f2747aea7e79 Mon Sep 17 00:00:00 2001 From: Matan Nassau Date: Sun, 20 Jan 2008 15:49:06 -0500 Subject: [PATCH] In the tabdelimited.rb module, moved transaction exporting code from export() to export_transaction(). --- tabdelimited.rb | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tabdelimited.rb b/tabdelimited.rb index 7ba7dd8..6dabe25 100644 --- a/tabdelimited.rb +++ b/tabdelimited.rb @@ -19,14 +19,7 @@ module TabDelimited def export File.open(@filename, "w") do |file| each do |transaction| - exported_transaction = [ - transaction.from, - transaction.to, - transaction.amount, - transaction.date, - transaction.description - ].join("\t") - file.puts(exported_transaction) + file.puts(export_transaction) end end end @@ -43,5 +36,12 @@ module TabDelimited end def export_transaction(transaction) + exported_transaction = [ + transaction.from, + transaction.to, + transaction.amount, + transaction.date, + transaction.description + ].join("\t") end end -- 2.11.4.GIT