module I18nable::ClassMethods

Public Instance Methods

localize(*args) click to toggle source
# File lib/i18nable.rb, line 26
def localize(*args)
  I18n.localize(*args)
end
translate(key, options = {}) click to toggle source
# File lib/i18nable.rb, line 22
def translate(key, options = {})
  I18n.translate(i18nable_key_builder.build(key), options)
end

Private Instance Methods

i18nable_key_builder() click to toggle source
# File lib/i18nable.rb, line 32
def i18nable_key_builder
  KeyBuilder.new(self)
end