class RubyQuiz2::SelectionsPrinter
Public Instance Methods
print(selections)
click to toggle source
# File lib/ruby_quiz_2/selections_printer.rb, line 4 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