From: Rich Lane Date: Sat, 20 Jun 2009 20:50:15 +0000 (-0700) Subject: fix String#ord monkeypatch X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=d27c84d160bb8d59741eda222fafd28b9a69feb2;p=sup fix String#ord monkeypatch --- diff --git a/lib/sup/util.rb b/lib/sup/util.rb index 8f60cc4..0609908 100644 --- a/lib/sup/util.rb +++ b/lib/sup/util.rb @@ -282,7 +282,7 @@ class String gsub(/\t/, " ").gsub(/\r/, "") end - if not defined? ord + unless method_defined? :ord def ord self[0] end