Ad
  • Default User Avatar

    Hi sradloff23. You may already know this, but there's no need to explicitly return values in Ruby (unless you want to break out of a block early). Just trying to be helpful as I am learning new languages as well :)

  • Default User Avatar

    Maybe the instructions have changed, but as they read now, I agree with vajdagabor. Currently the instructions say this:
    ghost = Ghost.new
    ghost.color #=> "white" or "yellow" or "purple" or "red"
    In my reading, that means that the ghost object will always return the same color. The color is not returned on instantiation, it's returned on a the .color method call of that particular instance of the Ghost class.