18/20 Forge an Object


#1

https://www.codecademy.com/en/courses/ruby-beginner-en-MFiQ6/3/3?curriculum_id=5059f8619189a5000201fbcb#

Error:
uninitialized class variable @@mesages_sent in Context::Message


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

my_message = Message.new(1, 2)

What is wrong? Last step clearly said to have @@messages_sent before initialize, so now I'm completely confused :frowning:


#2

found a typo in @@mesSages_sent