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 105
    def load(file, priv=nil)
      dir = File.dirname(file)
      dir = "" if dir == "."
      base = File.basename(file)

      if /^ja(_JP)?$/ =~ @lang
        back, @lang = @lang, "C"
      end
      begin
        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
      ensure
        @lang = back if back
      end
      raise LoadError, "No such file to load -- #{file}"
    end
Register or log in to add new notes.