Do not activate the emulation of Module#prepend on ruby 2.0

Akinori MUSHA 9 years ago
parent
commit
66e72eff75
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/prepend.rb

+ 1 - 1
lib/prepend.rb

@@ -82,4 +82,4 @@ class Module
82 82
     include mod
83 83
   end
84 84
   private :prepend
85
-end unless Module.method_defined?(:prepend)
85
+end unless Module.method_defined?(:prepend) || Module.private_method_defined?(:prepend)