Module: StrftimeJPWeek
- Defined in:
- lib/strftime_jp_week.rb,
lib/strftime_jp_week/version.rb
Constant Summary collapse
- JP_WEEK =
["日", "月", "火", "水", "木", "金", "土"].freeze
- VERSION =
"0.1.0"
Instance Method Summary collapse
Instance Method Details
#strftime(format = nil) ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/strftime_jp_week.rb', line 9 def strftime(format = nil) if format.nil? super() else super(format.gsub("%jpw", JP_WEEK[wday])) end end |