Skip to content

Instantly share code, notes, and snippets.

@pumpkincouture
Created August 29, 2014 12:56
Show Gist options
  • Save pumpkincouture/df657e8b0955882a1839 to your computer and use it in GitHub Desktop.
Save pumpkincouture/df657e8b0955882a1839 to your computer and use it in GitHub Desktop.
class Person
attr_reader :first, :last, :email
attr_accessor :assigned_santa
def initialize(list)
@first = list[0]
@last = list[1]
@email = list[2]
@assigned_santa = assigned_santa
end
def legit_santa(potential)
@last != potential.last
end
def not_assigned(potential)
potential.assigned_santa == nil
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment