Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Talking_cat
- attr_accessor :name
- def meow
- puts "Meow, I'm #{@name}"
- end
- end
- talking_cat = Talking_cat.new
- talking_cat.name = "Roux"
- talking_cat.meow # => "Meow, I'm Roux"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement