Sha256: db0ca0c6dd4332dbb03a46db35472ec9d84acccee4f75d1cb74e1602e7c3a007
Contents?: true
Size: 514 Bytes
Versions: 2
Compression:
Stored size: 514 Bytes
Contents
# encoding: utf-8 # # This file is part of the bovem gem. Copyright (C) 2013 and above Shogun <shogun@cowtech.it>. # Licensed under the MIT license, which can be found at http://www.opensource.org/licenses/mit-license.php. # module Bovem # Extension of Lazier::I18n to support method based access. class I18n < ::Lazier::I18n private def method_missing(method, *args) rv = send(:t, method) rv = sprintf(rv, *args) if rv.index(/%([\d.]*)[sdf]/) && args.present? rv end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bovem-4.0.1 | lib/bovem/i18n.rb |
bovem-4.0.0 | lib/bovem/i18n.rb |