Sha256: 6d5a64a5eb64ebfc165c3c8ba29c19eb93925cc11a695324833ca7fb996022d2
Contents?: true
Size: 411 Bytes
Versions: 1
Compression:
Stored size: 411 Bytes
Contents
module RubyQuiz2 class SelectionsPrinter def print(selections) puts puts "SECRET SANTA SELECTIONS" puts w = 25 puts "Santa".ljust(w, " ") + " " + "Giftee" puts "-----".ljust(w, "-") + " " + "------".ljust(w, "-") selections.each do |selection| puts selection.santa.name.ljust(w, " ") + " " + selection.giftee.name end puts end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ruby_quiz_2-1.0.0 | lib/ruby_quiz_2/selections_printer.rb |