method
find
v1_9_2_180 -
Show latest stable
- Class:
IRB::Locale
find(file , paths = $:)public
No documentation available.
# File lib/irb/locale.rb, line 116
def find(file , paths = $:)
dir = File.dirname(file)
dir = "" if dir == "."
base = File.basename(file)
if dir.start_with?('/')
return each_localized_path(dir, base).find{|full_path| File.readable? full_path}
else
return search_file(paths, dir, base)
end
end