Class: Bovem::I18n
- Inherits:
-
Lazier::I18n
- Object
- Lazier::I18n
- Bovem::I18n
- Defined in:
- lib/bovem/i18n.rb
Overview
Extension of Lazier::I18n to support method based access.
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args) ⇒ Object (private)
12 13 14 15 16 |
# 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 |