class Rubolph::Packager

Public Class Methods

new(results) click to toggle source
# File lib/rubolph/packager.rb, line 4
def initialize(results)
  @results = results
end

Public Instance Methods

package() click to toggle source
# File lib/rubolph/packager.rb, line 8
def package
 @results.each do |giver, receiver|
   open("./output/#{giver}.txt", 'w') do |f|
     f.puts "Hello #{giver.capitalize}. For Christmas 2015, you're buying a present for #{receiver.capitalize}."
   end
 end
end