Created
July 31, 2014 17:57
-
-
Save andyweiss1982/29ac4c42ac3df2f9e851 to your computer and use it in GitHub Desktop.
Quick Fox
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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