Taken this class as a example:
class House
def initialize(color, size)
@color = color
@size = size
end
def color
@color
end
# Is the = part of the syntax or a convention?
def color=(color)
@color = color
end
end
Is the equal '=' at the end of the setter-method a convention, like the '!' or the '?'? Or does is add functionality?