Skip to content

Instantly share code, notes, and snippets.

@Supernats
Created April 16, 2014 05:14
Show Gist options
  • Save Supernats/10810034 to your computer and use it in GitHub Desktop.
Save Supernats/10810034 to your computer and use it in GitHub Desktop.
class Cat
attr_accessor :name, :color
def initialize(name, color)
@name, @color = name, color
end
def meow
puts "#{ name } says meow"
end
def turn_black
color = "black"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment