Feature #14550
open
Support keyword arguments with Date#step
Added by ksss (Yuki Kurihara) over 6 years ago.
Updated over 6 years ago.
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
Thank you for reviewing.
I updated the documentation for Date#step also. (date-step-2.patch)
If adding keyword options, would it make sense to add the possibility to enumerate by >>
for whole months instead of only succ
days, or is that out of scope here?
avit (Andrew Vit) wrote:
If adding keyword options, would it make sense to add the possibility to enumerate by >>
for whole months instead of only succ
days, or is that out of scope here?
Please write a separate feature describing your proposal in more detail. You can link to this feature if you think it's related.
Also available in: Atom
PDF
Like0
Like0Like0Like0Like0