# File lib/ramaze/helper/localize.rb, line 81 def load(locale, options = {}) if file = options.delete(:yaml) dict = ::YAML.load_file(file) elsif hash = options.delete(:hash) dict = hash elsif marshal = options.delete(:marshal) dict = Marshal.load(File.read(marshal)) else raise ArgumentError, "either :yaml, :marshal, or :hash" end @dict[arg_to_locale(locale)] = dict end