From 6a37ae2f9dbe373f1536bc212df94327a130ab2f Mon Sep 17 00:00:00 2001 From: matz Date: Sat, 9 Dec 2006 02:26:19 +0000 Subject: * lib/irb/locale.rb (IRB::Locale::search_file): ues File.exist? instead of File.exists?. [ruby-dev:30000] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11370 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/irb/locale.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/irb/locale.rb b/lib/irb/locale.rb index 4b6aba2bb9..8a0f33d8fb 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 -- cgit v1.2.3