Class: Pubba::Locale

Inherits:
Object
  • Object
show all
Includes:
R18n::Helpers
Defined in:
lib/pubba/locale.rb

Instance Method Summary collapse

Instance Method Details

#get(category, name, *args) ⇒ Object



9
10
11
12
13
14
# File 'lib/pubba/locale.rb', line 9

def get(category, name, *args)
  res = t.send(category).send(name, *args)
  res = t.send(name, *args) if R18n::Untranslated === res

  R18n::Untranslated === res ? nil : res
end