Issue #9811 has been updated by Tomoyuki Chikanaga. Backport changed from 2.0.0: DONTNEED, 2.1: REQUIRED to 2.0.0: DONTNEED, 2.1: DONE r45858, r45859, r45860, r45861 and r46638 were backported into `ruby_2_1` branch at r46661. ---------------------------------------- Bug #9811: Numeric#step ignores `to` silently by keyword arguments. https://bugs.ruby-lang.org/issues/9811#change-47570 * 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: DONE ---------------------------------------- Numeric#stepにキーワード引数を指定すると、終了値が無視されます。 無効なキーワードでもエラーになりません。 ~~~ruby 1.step(10, foo: nil) ~~~ -- https://bugs.ruby-lang.org/