Ruby - Programming Language
This course covers the basics of programming in Ruby. Work your way through the videos/articles and I'll teach you everything you need to know to start your programming journey!

Object Methods

Lesson 31
Author : 🦒
Last Updated : November, 2017


Code

Copyclass Student
     attr_accessor :name, :major, :gpa
     def initialize(name, major, gpa)
          @name = title
          @major = author
          @gpa = gpa
     end

     def has_honors()
          if self.gpa >= 3.5
               return true
          end
          return false
     end
end