Getting Classier


#1

class Message(messages_sent=0)
@@messages_sent = 0
def initialize(from, to)
@from = from
@to = to
@@messages_sent += 1
end
end

The errors I'm getting are "(ruby): syntax error, unexpected '\n', expecting tCOLON2 or '[' or '.'
(ruby):9: syntax error, unexpected keyword_end, expecting $end", but while looking for answers through the forum, I seem to have everything right.


#2

This line should not contain a parameter.

class Message

#3

Thanks a lot! :-]
.
.
.
.
.
.
.