Project

General

Profile

Actions

Feature #14550

open

Support keyword arguments with Date#step

Added by ksss (Yuki Kurihara) over 6 years ago. Updated over 6 years ago.

Status:
Open
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
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0