Created
October 26, 2010 01:54
-
-
Save zeroeth/646181 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 Kelly | |
def have_another_beer? | |
return "yes".upcase | |
end | |
def racist? | |
ALWAYS_ESPECIALLY_THE_JEWS | |
end | |
def a_robot? | |
%w(bzzzt beep boop wrrrr).rand | |
end | |
end | |
kelly = Kelly.new | |
=> #<Kelly:0x10192a480> | |
kelly.have_another_beer? | |
=> "YES" | |
kelly.a_robot? | |
=> "bzzzt" | |
kelly.a_robot? | |
=> "wrrrr" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment