Sha256: 4471ebb3e97ead2136159f516aee196d38f0ed3eac8ef48a5a15a99f4f39e078
Contents?: true
Size: 234 Bytes
Versions: 3
Compression:
Stored size: 234 Bytes
Contents
module TimeCrisis::Weekend def weekend? [6, 7].include? self.cwday end def weekday? !weekend? end end ::TimeCrisis::Date.send(:include, TimeCrisis::Weekend) ::TimeCrisis::DateTime.send(:include, TimeCrisis::Weekend)
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
time_crisis-0.2.0 | lib/time_crisis/weekend.rb |
time_crisis-0.1.8 | lib/time_crisis/weekend.rb |
time_crisis-0.1.7 | lib/time_crisis/weekend.rb |