Sha256: 2c322bbd045cf3d316e452234d19761b839813282f2caa6a8977caefa63b39c2
Contents?: true
Size: 654 Bytes
Versions: 1
Compression:
Stored size: 654 Bytes
Contents
DateTime.class_eval do def russian_holiday? all_russian_holidays = [ DateTime.new(2015, 1, 1), DateTime.new(2015, 1, 2), DateTime.new(2015, 1, 5), DateTime.new(2015, 1, 6), DateTime.new(2015, 1, 7), DateTime.new(2015, 1, 8), DateTime.new(2015, 1, 9), DateTime.new(2015, 2, 23), DateTime.new(2015, 3, 9), DateTime.new(2015, 5, 1), DateTime.new(2015, 5, 4), DateTime.new(2015, 5, 11), DateTime.new(2015, 6, 12), DateTime.new(2015, 11, 4) ] if all_russian_holidays.index(self).nil? false else true end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
russian_holidays_checkup-0.1.3 | lib/russian_holidays_checkup/core_ext.rb |