Getters and Setters in Ruby
Getters and setters are so frequently defined that they're part of the language.
class Person
attr_accessor :name # same goes for attr_reader and attr_writer
end
person = Person.new
person.name = "Litsy"
person.name # => "Litsy"