Flowdock
load(file, priv=nil) public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

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
Register or log in to add new notes.