-
Notifications
You must be signed in to change notification settings - Fork 48
Sockets - Tatiana #36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
| print "Cool facts about your planet: " | ||
| fun_deets = gets.chomp | ||
| new_planet = Planet.new(name: new_name, color: new_color, mass_kg: mass, distance_from_sun_km: distance, fun_fact: fun_deets) | ||
| add_planet(new_planet) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This information gathering, seeing as it is coming from the user and talking to the user, generally makes more sense as a part of main to me.
| end | ||
| loop_count += 1 | ||
| puts "Would you like to perform another inquiry? enter y/n" | ||
| question = gets.chomp |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't like this! You gave me a quit option already, and if I want it, I'll use it!
Solar SystemWhat We're Looking For
|
Solar System
Congratulations! You're submitting your assignment.
Comprehension Questions
initializemethod run? What does it do?Hashinstead of an instance of a class?SolarSystemclass used aHashinstead of anArrayto store the list of planets?requirestatements? Which files neededrequires, and which did not? What is the pattern?