[#48190] [ruby-trunk - Feature #9816] 文字列内の数字を数値として比較するメソッド — zn@...
Issue #9816 has been updated by Kazuhiro NISHIYAMA.
3 messages
2014/05/08
[ruby-dev:48178] [ruby-trunk - Bug #9811] [Closed] Numeric#step ignores `to` silently by keyword arguments.
From:
nobu@...
Date:
2014-05-07 08:24:17 UTC
List:
ruby-dev #48178
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/