Ruby 3.4 リファレンスマニュアル

instance method Date#prev_day

prev_day(n = 1) -> DateRuby 1.9.3 から[permalink][rdoc][edit]

n 日前を返します。

[PARAM] n:
日数