diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-12-09 02:26:19 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-12-09 02:26:19 +0000 |
| commit | dd35f52e696c5245d689847b803b384b9b71a14b (patch) | |
| tree | 66ea6aa7b69310efeeb5e874ffdeb3b5dab0f673 /lib/irb | |
| parent | 58c2256d6d26b6f3437e3e67b6dee9761a06711f (diff) | |
| download | ruby-dd35f52e696c5245d689847b803b384b9b71a14b.tar.gz ruby-dd35f52e696c5245d689847b803b384b9b71a14b.tar.xz ruby-dd35f52e696c5245d689847b803b384b9b71a14b.zip | |
* lib/irb/locale.rb (IRB::Locale::search_file): ues File.exist?
instead of File.exists?. [ruby-dev:30000]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@11370 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/irb')
| -rw-r--r-- | lib/irb/locale.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/irb/locale.rb b/lib/irb/locale.rb index 4b6aba2bb..8a0f33d8f 100644 --- a/lib/irb/locale.rb +++ b/lib/irb/locale.rb @@ -153,8 +153,8 @@ module IRB end def search_file(path, file) - if File.exists?(p1 = path + lc_path(file, "C")) - if File.exists?(p2 = path + lc_path(file)) + if File.exist?(p1 = path + lc_path(file, "C")) + if File.exist?(p2 = path + lc_path(file)) return p2 else end |
