class IsoDoc::Generic::I18n

Attributes

_file[RW]

Public Class Methods

inherited( k ) click to toggle source
# File lib/isodoc/generic/i18n.rb, line 10
def self.inherited( k )
  k._file = caller_locations.first.absolute_path
end

Public Instance Methods

load_yaml1(lang, script) click to toggle source
Calls superclass method
# File lib/isodoc/generic/i18n.rb, line 14
def load_yaml1(lang, script)
  return super unless configuration.i18nyaml
  file = configuration.i18nyaml.is_a?(Hash) ?
    configuration.i18nyaml[lang] : configuration.i18nyaml
  return super if file.nil?
  y = YAML.load_file(baselocation(file))
  super.merge(y)
end