class Horse def name @name = "Easy Jet" endendh = Horse.newh.name# The method name is the kind of method that is referred to as an accessor method or getter. # It gets a property (the value of a variable) from an instance of a class.