Skip to content

Instantly share code, notes, and snippets.

@ashaw

ashaw/bark.rb Secret

Created June 9, 2016 21:06
Show Gist options
  • Save ashaw/2561a6864f411e26b4049a57bb659417 to your computer and use it in GitHub Desktop.
Save ashaw/2561a6864f411e26b4049a57bb659417 to your computer and use it in GitHub Desktop.
class Dog
def initialize(name, sound)
@name = name
@sound = sound
end
def bark
puts "#{@name} says #{@sound}"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment