Created
April 16, 2014 23:16
-
-
Save jdx/10941576 to your computer and use it in GitHub Desktop.
dont let me near ruby
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 Fixnum | |
def random_number_between_oneAndTEN!(yaSuRE) | |
if yaSuRE == 'ya dude!' | |
return rand(10) | |
else | |
raise 'YA GATTA TYPE YA DUDE!!!!!!!' | |
end | |
end | |
end | |
[3] pry(main)> 4.random_number_between_oneAndTEN!('ya dude!') | |
=> 9 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment