summaryrefslogtreecommitdiff
path: root/lib/set.rb
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-11-20 02:02:14 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-11-20 02:02:14 +0000
commit901ed0b3187048dd064b4bfdaaecc94881ab5800 (patch)
tree099a2719d185ed0214bbd7e92c845c77aadce912 /lib/set.rb
parent562c42a668ded49568e71d8af16576818babb97a (diff)
downloadbundler-901ed0b3187048dd064b4bfdaaecc94881ab5800.tar.gz
* lib/set.rb (SortedSet.setup): remove old_init after initialize
method is redefined. The remove before redefinition makes the warning prevention fragile. [ruby-dev:44892] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33796 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/set.rb')
-rwxr-xr-xlib/set.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/set.rb b/lib/set.rb
index ff0c0e6e9e..d1e2a2e445 100755
--- a/lib/set.rb
+++ b/lib/set.rb
@@ -604,6 +604,10 @@ class SortedSet < Set
end
}
end
+ module_eval {
+ # a hack to shut up warning
+ remove_method :old_init
+ }
@@setup = true
end