Skip to content

Instantly share code, notes, and snippets.

@brainopia
Created September 25, 2008 15:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brainopia/12840 to your computer and use it in GitHub Desktop.
Save brainopia/12840 to your computer and use it in GitHub Desktop.
class String
def -@
'unary minus redefined'
end
end
-"foobar" # => 'unary minus redefined'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment