Please help, my Ruby object object wont work,


#1

class Message
@@messages_sent = 0

def initialize (from,to)
    @from = from
    @to = to
    @@message += 1

end

end

my
_message = Message.new("hlo","pam")

when I run it I get this error uninitialized class variable @@message in Context::Message


#2
@@messages_sent = 0

@@message += 1

These two lines need your attention.


#3

oh wow, thanks that worked. Attention to detail huh? thanks again