Sha256: 8f20b68d450a725a5e54ee433a8f5c94f622e5a15f3c01ff65b8a87d03db3e51
Contents?: true
Size: 440 Bytes
Versions: 42
Compression:
Stored size: 440 Bytes
Contents
require 'Calendar.rb' require 'date' unless Time::new.respond_to?( :strftime_holiday_backup ) then eval( <<-MODIFY_CLASS, TOPLEVEL_BINDING ) class Time alias strftime_holiday_backup strftime def strftime( format ) holiday = "" day = Day.new(self.day,self.month,self.year,self.wday) holiday = day.holiday_name_jp if day.holiday? strftime_holiday_backup( format.gsub( /%K/, holiday ) ) end end MODIFY_CLASS end
Version data entries
42 entries across 37 versions & 2 rubygems