]> git.cworth.org Git - sup/commitdiff
fix String#ord monkeypatch
authorRich Lane <rlane@club.cc.cmu.edu>
Sat, 20 Jun 2009 20:50:15 +0000 (13:50 -0700)
committerWilliam Morgan <wmorgan-sup@masanjin.net>
Wed, 24 Jun 2009 13:44:49 +0000 (09:44 -0400)
lib/sup/util.rb

index 8f60cc43216979aaa207696324f117ba7025cbdd..0609908d0d5be79a954673ff77778b5199146383 100644 (file)
@@ -282,7 +282,7 @@ class String
     gsub(/\t/, "    ").gsub(/\r/, "")
   end
 
-  if not defined? ord
+  unless method_defined? :ord
     def ord
       self[0]
     end