]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/blobdiff - lib/rbot/core/utils/httputil.rb
ruby 1.9: fix *methods.include?
[user/henk/code/ruby/rbot.git] / lib / rbot / core / utils / httputil.rb
index 4ea83104ccc51a4d86a1cff0f89afd2995893725..fa0addb98a2ec6b067df091cdafb3d10ec5eb6fc 100644 (file)
@@ -25,7 +25,7 @@ require 'zlib'
 module ::Net
   class HTTPResponse
     attr_accessor :no_cache
-    if !instance_methods.include?('raw_body')
+    unless method_defined? :raw_body
       alias :raw_body :body
     end