- 「今週」の日付を配列として返す
def this_week if today == "wednesday" return [date(sunday), ..., date(wednesday)] end end
- 「先週」の日付を配列として返す
def last_week return [date(last.sunday), ..., date(last.saturday)] end
def this_week if today == "wednesday" return [date(sunday), ..., date(wednesday)] end end
def last_week return [date(last.sunday), ..., date(last.saturday)] end