Guest User

Untitled

a guest
Nov 15th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. class Patient
  2. attr_accessor :name
  3.  
  4. def initialize(name)
  5. @name = name
  6. @@all << self
  7. end
  8.  
  9. def new_appointment(doctor, date)
  10. Appointment.new(date, self, doctor)
  11. end
  12. end
Add Comment
Please, Sign In to add comment