In this lab, you'll be creating a Cat class. Every instance of a Cat should have a name and be able to meow. In other words, I should be able to do:
maru = Cat.new maru.name = "Maru" maru.name # => "Maru" maru.meow # "meow!" # => nil
Run the test suite to get started. You'll be writing all your code in the
attr_accessormacro to create a setter and getter method for a cat's name.
.meow, that outputs "meow!" to the terminal using the
putsmethod when called on an instance of Cat.
View Meowing Cat on Learn.co and start learning to code for free.