Project

General

Profile

Feature #14550

Support keyword arguments with Date#step

Added by ksss (Yuki Kurihara) almost 3 years ago. Updated over 2 years ago.

Status:
Open
Priority:
Normal
Assignee:
-
Target version:
-
[ruby-core:85798]

Description

How about supporting keyword arguments with Date#step like Numeric#step?

from = Date.new(2018, 1, 1)
to = Date.new(2018, 2, 1)
from.step(to: to, by: 3).to_a

I expected that this is already supported.
But not.


Files

date-step.patch (2.8 KB) date-step.patch ksss (Yuki Kurihara), 02/24/2018 02:34 PM
date-step-2.patch (3.46 KB) date-step-2.patch ksss (Yuki Kurihara), 02/25/2018 08:35 AM

Also available in: Atom PDF