Skip to content

Instantly share code, notes, and snippets.

@andyweiss1982
Created July 31, 2014 17:57
Show Gist options
  • Save andyweiss1982/29ac4c42ac3df2f9e851 to your computer and use it in GitHub Desktop.
Save andyweiss1982/29ac4c42ac3df2f9e851 to your computer and use it in GitHub Desktop.
Quick Fox
class Animal
def initialize(animalname)
@name=animalname
end
def jumped_over (firstthingjumpedover, secondthingjumpedover)
puts "#{@name} jumped over the #{firstthingjumpedover} and the #{secondthingjumpedover}."
end
end
quick_fox=Animal.new("The quick fox”)
lazy_dog = “lazy dog”
daisy_log = “daisy log”
quick_fox.jumped_over(lazy_dog,daisy_log)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment