Project

General

Profile

Actions

Bug #9811

closed

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

Added by nobu (Nobuyoshi Nakada) about 8 years ago. Updated almost 8 years ago.

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

Description

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

1.step(10, foo: nil)
Actions

Also available in: Atom PDF