Module: StampL10n::Emitters::LookupExtension::ClassMethods

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

Instance Method Summary collapse

Instance Method Details

#abbr_day(locale = I18n.locale) ⇒ Object



17
18
19
# File 'lib/stamp-l10n/emitters/lookup_extension.rb', line 17

def abbr_day(locale = I18n.locale)
  ::Stamp::Emitters::Lookup.new(:wday, I18n.t('date.abbr_day_names', locale: locale))
end

#abbr_month(locale = I18n.locale) ⇒ Object



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

def abbr_month(locale = I18n.locale)
  ::Stamp::Emitters::Lookup.new(:month, I18n.t('date.abbr_month_names', locale: locale))
end

#day(locale = I18n.locale) ⇒ Object



13
14
15
# File 'lib/stamp-l10n/emitters/lookup_extension.rb', line 13

def day(locale = I18n.locale)
  ::Stamp::Emitters::Lookup.new(:wday, I18n.t('date.day_names', locale: locale))
end

#month(locale = I18n.locale) ⇒ Object



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

def month(locale = I18n.locale)
  ::Stamp::Emitters::Lookup.new(:month, I18n.t('date.month_names', locale: locale))
end