Skip to content

Instantly share code, notes, and snippets.

@pauladam
Created July 11, 2012 22:37
Show Gist options
  • Save pauladam/3094209 to your computer and use it in GitHub Desktop.
Save pauladam/3094209 to your computer and use it in GitHub Desktop.
[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