Skip to content

Instantly share code, notes, and snippets.

@glenngillen
Created October 22, 2011 14:24
Show Gist options
  • Save glenngillen/1306058 to your computer and use it in GitHub Desktop.
Save glenngillen/1306058 to your computer and use it in GitHub Desktop.
ruby-1.9.2-p290 :014 > 1 ≥ 1
SyntaxError: (irb):14: syntax error, unexpected tIDENTIFIER, expecting $end
1 ≥ 1
^
from /Users/glenngillen/.rvm/rubies/ruby-1.9.2-p290/bin/irb:16:in `<main>'
ruby-1.9.2-p290 :015 >
class Numeric
def ≤(other)
self <= other
end
def ≥(other)
self >= other
end
end
class Object
def ≠(other)
self != other
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment