Skip to content

Instantly share code, notes, and snippets.

@PaleoGuy2012
Last active March 7, 2018 01:03
Show Gist options
  • Save PaleoGuy2012/057d68bd7e64a752b621624b3642441c to your computer and use it in GitHub Desktop.
Save PaleoGuy2012/057d68bd7e64a752b621624b3642441c to your computer and use it in GitHub Desktop.
Quiz #3
class Dog
attr_accessor :name, :breed
def initialize(name, breed)
@name= name
@breed= breed
end
def to_s
"#{name} is a #{breed}."
end
end
fido=Dog.new("Max", "Pitbull")
puts fido
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment