# File lib/active_support/core_ext/time/calculations.rb, line 169 def end_of_week days_to_sunday = wday!=0 ? 7-wday : 0 (self + days_to_sunday.days).end_of_day end