Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Appointment
- attr_accessor :date, :patient, :doctor
- @@all = []
- def initialize(date, patient, doctor)
- @date = date
- @patient = patient
- @doctor = doctor
- @@all << self
- end
- def self.all
- @@all
- end
- end
Add Comment
Please, Sign In to add comment