diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-05-28 09:10:50 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-05-28 09:10:50 +0000 |
| commit | 0496b2e573579de850060b54545a8714be4d107e (patch) | |
| tree | 2e697c5c7c455c6b5042d6d366d070d493f41c52 | |
| parent | 08b38ab3d6d34f8b56afb55c5e0f37a25c10465d (diff) | |
* ext/purelib.rb: get rid of recent feature. [ruby-dev:34864]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@16674 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ext/purelib.rb | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/ext/purelib.rb b/ext/purelib.rb index 284254a8b4..dbe514c34a 100644 --- a/ext/purelib.rb +++ b/ext/purelib.rb @@ -1,3 +1,10 @@ -if nul = $:.find_index {|path| /\A(?:\.\/)*-\z/ =~ path} +nul = nil +$:.each_with_index {|path, index| + if /\A(?:\.\/)*-\z/ =~ path + nul = index + break + end +} +if nul $:[nul..-1] = ["."] end |
