spacepaste

  1.  
  2. class Person
  3. def id
  4. @id ||= (Array.new(10) + [1, 2, 3]).sample
  5. end
  6. end
  7. # how to run a loop until a get a person that has a non nil id?
  8.