Class: Weekdays
Overview
The Weekdays class provides useful weekday terminology to Numeric.
Constant Summary collapse
- WEEKDAYS =
Monday is wday 1
1..5
- ONE_DAY =
60 * 60 * 24
Instance Method Summary collapse
- #ago(time = ::Time.now) ⇒ Object (also: #until, #before)
-
#initialize(n) ⇒ Weekdays
constructor
A new instance of Weekdays.
- #since(time = ::Time.now) ⇒ Object (also: #from_now, #after)
Constructor Details
#initialize(n) ⇒ Weekdays
Returns a new instance of Weekdays.
134 135 136 |
# File 'lib/more/facets/times.rb', line 134 def initialize(n) @n = n end |