Module: JapaneseCalendar::Deprecation::WeekdayWrapper

Includes:
Reporting
Included in:
Weekday
Defined in:
lib/japanese_calendar/deprecation/weekday_wrapper.rb

Overview

Prepend wrapper for Weekday module

Instance Method Summary collapse

Instance Method Details

#strftime(format) ⇒ Object



20
21
22
23
24
25
# File 'lib/japanese_calendar/deprecation/weekday_wrapper.rb', line 20

def strftime(format)
  string = super(format)
  deprecations = collect_weekday_deprecations(string)
  deprecations.each { |deprecation| deprecate_directive(*deprecation) }
  string.gsub(deprecated_weekday_pattern, deprecated_weekday_conversion)
end