Skip to content

Conversation

@CShekta
Copy link

@CShekta CShekta commented Oct 1, 2015

My code!

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! I wonder if you could put all of the hashes into an array (maybe named hashes?) and then iterate over that array to add each of your planets:

original_planets = []
hashes.each do |planet_hash|
   planet = Planet.new(planet_hash)
   original_planets.push(planet)
end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants