18. Forge an Object in the Fires of Mount Ruby


#1

The error I'm getting for the code below is: (ruby):9: syntax error, unexpected ',', expecting ')'
my_message = Message.new (Miami, Los Angeles).

The instructions are asking: After your class, create a variable called my_message.
Create an instance of your Message class using Message.new with whatever from and to arguments you want! Store the result in my_message.

My code is the following:

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

my_message = Message.new (Miami, Los Angeles)

Could anyone help me understand why this is incorrect?


#2

You're missing quotes around your parameters.