method
find
v1_8_7_330 -
Show latest stable
- Class:
IRB::Locale
find(file , paths = $:)public
No documentation available.
# File lib/irb/locale.rb, line 139
def find(file , paths = $:)
dir = File.dirname(file)
dir = "" if dir == "."
base = File.basename(file)
if dir[0] == ?/ #/
return lc_path = search_file(dir, base)
else
for path in $:
if lc_path = search_file(path + "/" + dir, base)
return lc_path
end
end
end
nil
end