[ruby-core:85799] [Ruby trunk Feature#14550] Support keyword arguments with Date#step

From: shevegen@...
Date: 2018-02-24 20:24:32 UTC
List: ruby-core #85799
Issue #14550 has been updated by shevegen (Robert A. Heiler).


Seems ok.

For others, here is a quick link to the documentation for Date
in current ruby 2.5.0:

http://ruby-doc.org/stdlib-2.5.0/libdoc/date/rdoc/Date.html#method-i-step

----------------------------------------
Feature #14550: Support keyword arguments with Date#step
https://bugs.ruby-lang.org/issues/14550#change-70649

* Author: ksss (Yuki Kurihara)
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
----------------------------------------
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)


-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread

Prev Next