Good work! Here are my comments on your code:
Orange Tree class:
age! method:
Right now, all of the oranges you create have a diameter
of 3. If you want to keep it like this, you could make your code simpler by hard coding the diameter into your Orange class initialize method. Or (much better!), perhaps you could change this method so that each orange is created with a random diameter (like in real life). It would be cool if you did that! (And heads up: the runner.rb file assumes your oranges will have varying diameters. See my note on the runner.rb file below.)
Also heads up: Looks like line 25 will add oranges to a tree even if the tree is already dead (!). Uh oh! How could you rewrite your code to avoid this from happening?
Also you should utilize your attr_writer :dead
method here. On line 19, instead of @dead = true
you could utilize your attr method by writing this as self.dead=(true)
(This samem concept also applies to all of your references to grown_oranges
and `