method
load
load(file, priv=nil)
public
Hide source
# File lib/irb/locale.rb, line 113 def load(file, priv=nil) dir = File.dirname(file) dir = "" if dir == "." base = File.basename(file) if dir[0] == // #/ lc_path = search_file(dir, base) return real_load(lc_path, priv) if lc_path end for path in $: lc_path = search_file(path + "/" + dir, base) return real_load(lc_path, priv) if lc_path end raise LoadError, "No such file to load -- #{file}" end