mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/set.rb (SortedSet::setup): a hack to shut up warning.
[ruby-talk:132866] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8067 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
437fb244f4
commit
d43b7e03ef
2 changed files with 10 additions and 0 deletions
|
@ -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'
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue