SHARE
TWEET

Untitled

a guest Oct 12th, 2017 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. require_relative 'school'
  2. require_relative 'student'
  3. le_wagon = School.new("le wagon")
  4.  
  5. puts "The name of the school is #{le_wagon.name}"
  6. pedro = Student.new("pedro", 37)
  7. fernando = Student.new("fernando", 30)
  8. puts "Student's count is #{le_wagon.students_count}"
  9. le_wagon.enroll(pedro)
  10. puts "Student's count is #{le_wagon.students_count}"
  11. le_wagon.enroll(fernando)
  12. puts "Student's count is #{le_wagon.students_count}"
  13.  
  14. puts le_wagon.display_students
RAW Paste Data
Top