Issue #21932 has been updated by nobu (Nobuyoshi Nakada). zenspider (Ryan Davis) wrote in #note-2:
In the method comment on the impl side, you have examples for parsing a date... but IDGI... 1/2/10 are supposed to be the base arg, right? Base 1?
I can't get from where the example comes. Do you want to mean something like this? ```ruby /\d+/.match("1/2/10").get_int(0) # => 1 /\d+/.match("1/2/10").get_int(0, 1) # invalid radix 1 (ArgumentError) ``` ---------------------------------------- Feature #21932: `MatchData#get_int` https://bugs.ruby-lang.org/issues/21932#change-116578 * Author: nobu (Nobuyoshi Nakada) * Status: Open ---------------------------------------- This is suggested by @akr today, `$~.get_int(1)` is equivalent to `$1.to_i` but does not create the intermediate string object. https://github.com/nobu/ruby/tree/match-get_int -- https://bugs.ruby-lang.org/