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 | f19381fc8ad7b8b0801755007f33eb1f01e38428 (patch) | |
tree | 5fcd810ac88045a8bab6bb5c007375f2af65ee4f | |
parent | 61df8cd6b39758c39fdebf170a109a78db11d3ba (diff) | |
download | ruby-f19381fc8ad7b8b0801755007f33eb1f01e38428.tar.gz ruby-f19381fc8ad7b8b0801755007f33eb1f01e38428.tar.xz ruby-f19381fc8ad7b8b0801755007f33eb1f01e38428.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/trunk@11370 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | lib/irb/locale.rb | 4 |
2 files changed, 7 insertions, 2 deletions
@@ -1,3 +1,8 @@ +Sat Dec 9 11:22:00 2006 Yukihiro Matsumoto <matz@ruby-lang.org> + + * lib/irb/locale.rb (IRB::Locale::search_file): ues File.exist? + instead of File.exists?. [ruby-dev:30000] + Fri Dec 8 18:11:18 2006 NAKAMURA Usaku <usa@ruby-lang.org> * lib/optparse.rb: cannot put :nodoc: before method definition. 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 |