TExpr that matches days of the week within one week only.
If start and end day are equal, the entire week will match true.
See also: Date
Creates a REWeek using the supplied start day(range = 0..6, where 0=>Sunday) and an optional end day. If an end day is not supplied, the maximum value (6 => Saturday) is assumed.
# File lib/runt/temporalexpression.rb, line 431 def initialize(start_day,end_day=6) validate(start_day,end_day) @start_day = start_day @end_day = end_day end
# File lib/runt/temporalexpression.rb, line 437 def ==(o) o.is_a?(REWeek) ? start_day == o.start_day && end_day == o.end_day : super(o) end
Generated with the Darkfish Rdoc Generator 2.