Created
July 11, 2012 22:37
-
-
Save pauladam/3094209 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
[12] pry(main)> class Fixnum | |
[12] pry(main)* def in(l) | |
[12] pry(main)* l.include? self | |
[12] pry(main)* end | |
[12] pry(main)* end | |
=> nil | |
[13] pry(main)> 1.in [1,2,3] | |
=> true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment