@@messages_sent = 0
def initialize(from, to)
@from = from
@to = to
@@messages_sent += 1
my_message = Message.new(@from, @to)
Why in the last part is (@from, @to) work? But it doesn't work with from or to by itself? Can someone clarify this?
I thought the arguments (from, to) in initialize would be the correct way to write out the last part, but it says I am wrong when I do this?