Sha256: 79948d466d49bf956f3d5a92644b10f606c97cd254cb58a71b3b63dc5edb2203
Contents?: true
Size: 341 Bytes
Versions: 2
Compression:
Stored size: 341 Bytes
Contents
module Hyperloop class Component module Mixin def t(attribute, opts = {}) namespace = self.class.name.underscore.tr('/', '.') HyperI18n::I18n.t("#{namespace}.#{attribute}", opts) end def l(time, format = :default, opts = {}) HyperI18n::I18n.l(time, format, opts) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
hyper-i18n-0.99.0 | lib/hyper-i18n/hyperloop/component/mixin.rb |
hyper-i18n-0.1.1 | lib/hyper-i18n/hyperloop/component/mixin.rb |