Sha256: 2af64b1b1202c8c3a65f1c9c79a04fdc87d2fe36d85ff9cd81c591c444d9cd7e
Contents?: true
Size: 671 Bytes
Versions: 32
Compression:
Stored size: 671 Bytes
Contents
require_relative "utils" module IsoDoc module Generic class I18n < IsoDoc::I18n class << self attr_accessor :_file end def self.inherited(k) k._file = caller_locations(1..1).first.absolute_path end def load_yaml1(lang, script) return super unless configuration.i18nyaml file = if configuration.i18nyaml.is_a?(Hash) configuration.i18nyaml[lang] else configuration.i18nyaml end return super if file.nil? y = YAML.load_file(baselocation(file)) super.deep_merge(y) end include Utils end end end
Version data entries
32 entries across 32 versions & 1 rubygems