summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rwxr-xr-xlib/set.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/set.rb b/lib/set.rb
index 43edc7557a..07031bf894 100755
--- a/lib/set.rb
+++ b/lib/set.rb
@@ -525,7 +525,6 @@ class SortedSet < Set
module_eval {
# a hack to shut up warning
alias old_init initialize
- remove_method :old_init
}
begin
require 'rbtree'
@@ -605,6 +604,10 @@ class SortedSet < Set
end
}
end
+ module_eval {
+ # a hack to shut up warning
+ remove_method :old_init
+ }
@@setup = true
end