Sha256: 249002bc2d4f2a77bb4161954ad952c71b116165a8211d701e95460fb01f8fa2
Contents?: true
Size: 466 Bytes
Versions: 1
Compression:
Stored size: 466 Bytes
Contents
module ByStar module ByWeekend def by_weekend(*args) options = args.extract_options!.symbolize_keys! time = args.first time ||= Time.zone.now send("by_weekend_#{time_klass(time)}", time, options) end private def by_weekend_Time(time, options={}) between(time.beginning_of_weekend, time.end_of_weekend) end def by_weekend_Date(date, options={}) by_weekend_Time(date.to_time, options) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
by_star-2.1.0.beta2 | lib/by_star/by_weekend.rb |