1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
akr 2011-11-20 02:02:14 +00:00
parent 562c42a668
commit 901ed0b318
2 changed files with 8 additions and 3 deletions

View file

@ -1,7 +1,8 @@
Sun Nov 20 10:18:22 2011 Tanaka Akira <akr@fsij.org>
Sun Nov 20 11:01:28 2011 Tanaka Akira <akr@fsij.org>
* lib/set.rb (SortedSet.setup): don't remove old_init. The remove
makes the warning prevention fragile. [ruby-dev:44892]
* 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]
Sun Nov 20 04:01:45 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>

View file

@ -604,6 +604,10 @@ class SortedSet < Set
end
}
end
module_eval {
# a hack to shut up warning
remove_method :old_init
}
@@setup = true
end