class InvoiceTranslations::I18n

Public Class Methods

new(locale) click to toggle source
# File lib/invoice_translations/i18n.rb, line 5
def initialize(locale)
  @i18n = R18n::I18n.new(locale, LOADER)
end

Public Instance Methods

[](name) click to toggle source
# File lib/invoice_translations/i18n.rb, line 13
def [](name)
  @i18n[:invoice][name]
end
Also aliased as: method_missing
method_missing(name)
Alias for: []
to_h() click to toggle source
# File lib/invoice_translations/i18n.rb, line 9
def to_h
  @i18n.t.to_hash
end