This community-built FAQ covers the “Forge an Object in the Fires of Mount Ruby” exercise from the lesson “Object-Oriented Programming I”.
Paths and Courses
This exercise can be found in the following Codecademy content:
FAQs on the exercise Forge an Object in the Fires of Mount Ruby
There are currently no frequently asked questions associated with this exercise – that’s where you come in! You can contribute to this section by offering your own questions, answers, or clarifications on this exercise. Ask or answer a question by clicking reply () below.
If you’ve had an “aha” moment about the concepts, formatting, syntax, or anything else with this exercise, consider sharing those insights! Teaching others and answering their questions is one of the best ways to learn and stay sharp.
Join the Discussion. Help a fellow learner on their journey.
Ask or answer a question about this exercise by clicking reply () below!
Agree with a comment or answer? Like () to up-vote the contribution!
Need broader help or resources? Head here.
Looking for motivation to keep learning? Join our wider discussions.
Learn more about how to use this guide.
Found a bug? Report it!
Have a question about your account or billing? Reach out to our customer support team!
None of the above? Find out where to ask other questions here!
OBJECT-ORIENTED PROGRAMMING I
Forge an Object in the Fires of Mount Ruby
@@messages_sent = 0
def initialize(from, to)
@from = from
@to = to
@@messages_sent = @@messages_sent + 1
my_message = Message.new(from, to)
This is exactly like in the hint, which I looked at after failing, so I dont understand what it wants for me to get this correct:
“After your class, create a variable called
my_message . Create an instance of your
Message class using
Message.new with whatever
to arguments you want! Store the result in
Perhaps I forgot to “store” the arguments in “my_message” but I can’t remember how to do that and I feel as though it’s been many lessons since I did that (and probably a week or two since I did that lesson on here so I really don’t remember it…)
Your code looks perfect… Could you specify what kind of error message you’re getting, that’d be very helpful
This question was never answered, but on examination we see that the arguments are undefined.
my_message = Message.new(email@example.com, firstname.lastname@example.org)
Haha yeah I know that " Oh that was 200 lessons ago" feeling. On the other hand I sometimes get error messages even if my code if perfect. What I do most of the times is not taking the hint as literally.
In fact I don’t pay any attention to it unless that is the last thing to look at in order to complete the “mission”. Try going back to previous lessons and figure out the ting from that, sometimes it gives me 15000 xp points