Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env ruby
- # encoding: utf-8
- class Object
- def ≤(o)
- self <= o
- end
- def ≥(o)
- self >= o
- end
- def ≠(o)
- self != o
- end
- def ≡(o)
- self === o
- end
- end
- print "1 ≤ 2 → "; p 1.≤ 2
- print "1 ≥ 2 → "; p 1.≥ 2
- print "1 ≠ 2 → "; p 1.≠ 2
- print "1 ≡ 2 → "; p 1.≡ 2
Add Comment
Please, Sign In to add comment