method

load

v1_9_1_378 - Show latest stable - Class: IRB::Locale
load(file, priv=nil)
public

No documentation available.

# 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