]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/blobdiff - lib/rbot/load-gettext.rb
Limit Comparable inclusion to Array
[user/henk/code/ruby/rbot.git] / lib / rbot / load-gettext.rb
index 5e2ec1860450306b4e8311ec37038449f271b4d9..d45263e1c2d53de2df2333419c88527242a16c21 100644 (file)
@@ -18,7 +18,9 @@ end
   require 'gettext/version'
 
   gettext_version = GetText::VERSION.split('.').map {|n| n.to_i}
-  include Comparable # for Array#>=
+  class ::Array
+    include Comparable # for Array#>=
+  end
   unless gettext_version >= [1, 8, 0]
     raise GetTextVersionError, "Unsupported ruby-gettext version installed: #{gettext_version.join '.'}; supported versions are 1.8.0 and above"
   end