Module: JapaneseCalendar::Deprecation::EraWrapper
Overview
Prepend wrapper for Era module
Instance Method Summary collapse
Instance Method Details
#strftime(format) ⇒ Object
25 26 27 28 29 30 |
# File 'lib/japanese_calendar/deprecation/era_wrapper.rb', line 25 def strftime(format) string = super(format) deprecations = collect_era_deprecations(string) deprecations.each { |deprecation| deprecate_directive(*deprecation) } string.gsub(deprecated_era_pattern, deprecated_era_conversion) end |