class Localer::Data
Stores translations and provides check methods
Attributes
locales[R]
translations[R]
Public Class Methods
new(*args)
click to toggle source
Calls superclass method
# File lib/localer/data.rb, line 18 def initialize(*args) super @locales, @translations = Processor.call(source, config) end
Public Instance Methods
complete?()
click to toggle source
# File lib/localer/data.rb, line 23 def complete? Checker.call(self) end
each() { |locale, key, value| ... }
click to toggle source
# File lib/localer/data.rb, line 31 def each @translations.each do |key, value| @locales.each do |locale| yield locale, key, value[locale] end end end
missing_translations()
click to toggle source
# File lib/localer/data.rb, line 27 def missing_translations MissingTranslations.call(self) end