Module: StampL10n::Emitters::AmPmExtension::ClassMethods

Defined in:
lib/stamp-l10n/emitters/am_pm_extension.rb

Instance Method Summary collapse

Instance Method Details

#lowercase(locale = I18n.locale) ⇒ Object



5
6
7
# File 'lib/stamp-l10n/emitters/am_pm_extension.rb', line 5

def lowercase(locale = I18n.locale)
  ::Stamp::Emitters::AmPm.new { |v| I18n.t(v, scope: 'time', locale: locale) }
end

#uppercase(locale = I18n.locale) ⇒ Object



9
10
11
# File 'lib/stamp-l10n/emitters/am_pm_extension.rb', line 9

def uppercase(locale = I18n.locale)
  ::Stamp::Emitters::AmPm.new { |v| I18n.t(v, scope: 'time', locale: locale).upcase }
end