Episode 4a - More About Return Values

Exercises

  1. Create the Dog class in your text editor as it’s been presented in the video. What happens if you eliminate the return keyword from the name, breed, and age methods? That is, what would happen if the name method looked like this:
    def name
        @dogs_name
    end