Created
April 24, 2013 23:13
-
-
Save skateinmars/5456363 to your computer and use it in GitHub Desktop.
Revisions
-
skateinmars created this gist
Apr 24, 2013 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ class String def new_compare(obj) send(:'old_=~', Regexp.new(obj)) end alias_method :'old_=~', :'=~' alias_method :'=~', :'new_compare' end puts ("blah" =~ "blah") == 0