class Bovem::I18n

Extension of Lazier::I18n to support method based access.

Private Instance Methods

method_missing(method, *args) click to toggle source
# File lib/bovem/i18n.rb, line 12
def method_missing(method, *args)
  rv = send(:t, method)
  rv = sprintf(rv, *args) if rv.index(/%([\d.]*)[sdf]/) && args.present?
  rv
end