If it is written for a beginner understanding, I think you have to consider typos and explanation.
garfield = cat.new
# Class name is a Camel case
# garfield = Cat.new
cat.name = "Garfield"
# cat isn't initialised! you mean cat = Cat.new ? and invoking cat.name ?
puts garfield.name # "Garfield" Congrats! You've made a new cat!
garfield.meow # Garfield can't meow. Why? meow isn't an instance variable like 'name'.
cat.meow # "Meow!" Cat can. Why? meow is a local variable. Only Cat can use it.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
If it is written for a beginner understanding, I think you have to consider typos and explanation.