Issue #9811 has been updated by Nobuyoshi Nakada. Status changed from Open to Closed % Done changed from 0 to 100 Applied in changeset r45861. ---------- numeric.c: check keyword arguments * numeric.c (num_step_scan_args): check keyword arguments and fail if they conflict with positional arguments. [ruby-dev:48177] [Bug #9811] ---------------------------------------- Bug #9811: Numeric#step ignores `to` silently by keyword arguments. https://bugs.ruby-lang.org/issues/9811#change-46591 * Author: Nobuyoshi Nakada * Status: Closed * Priority: Normal * Assignee: * Category: core * Target version: current: 2.2.0 * ruby -v: r45860 * Backport: 2.0.0: DONTNEED, 2.1: REQUIRED ---------------------------------------- Numeric#stepにキーワード引数を指定すると、終了値が無視されます。 無効なキーワードでもエラーになりません。 ~~~ruby 1.step(10, foo: nil) ~~~ -- https://bugs.ruby-lang.org/