diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | lib/set.rb | 5 |
2 files changed, 10 insertions, 0 deletions
@@ -5,6 +5,11 @@ Fri Mar 4 11:17:06 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp> * ext/tcltklib/tcltklib.c (ip_rb_threadUpdateCommand): ditto. +Fri Mar 4 10:15:30 2005 Yukihiro Matsumoto <matz@ruby-lang.org> + + * lib/set.rb (SortedSet::setup): a hack to shut up warning. + [ruby-talk:132866] + Thu Mar 4 07:07:00 2005 NARUSE, Yui <naruse@ruby-lang.org> * ext/nkf/nkf-utf8/nkf.c: follow nkf 1.63 diff --git a/lib/set.rb b/lib/set.rb index 4a9256a33e..22530cd3e1 100644 --- a/lib/set.rb +++ b/lib/set.rb @@ -440,6 +440,11 @@ class SortedSet < Set def setup # :nodoc: @@setup and return + module_eval { + # a hack to shut up warning + alias old_init initialize + remove_method :old_init + } begin require 'rbtree' |