Created
February 21, 2009 19:53
-
-
Save johnbender/68163 to your computer and use it in GitHub Desktop.
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 MailTruck | |
@@trucks = [] | |
def MailTruck.add( truck ) | |
@@trucks << truck | |
end | |
def say_hi | |
puts "Hi, I'm one of #{@@trucks.length} trucks!" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment