Project

General

Profile

Actions

Bug #9811

closed

Numeric#step ignores `to` silently by keyword arguments.

Added by nobu (Nobuyoshi Nakada) over 10 years ago. Updated over 10 years ago.

Status:
Closed
Assignee:
-
Target version:
ruby -v:
r45860
[ruby-dev:48177]

Description

Numeric#stepにキーワード引数を指定すると、終了値が無視されます。
無効なキーワードでもエラーになりません。

1.step(10, foo: nil)
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0