Author Archives: Martin

Secret Santas (#2)

Hello, this is a test post to get Ruby syntax highlighting working. The code below isn’t a complete solution to the following quiz: http://www.rubyquiz.com/quiz2.html Honest. class SecretSanta include Comparable attr_reader :first_name, :surname, :email, :santa, :santa_for attr_writer :santa, :santa_for def initialize(first_name, surname, email) @first_name, @surname, @email = first_name, surname, email @santa = nil @santa_for = nil […]