From: nobu@... Date: 2018-10-07T04:17:40+00:00 Subject: [ruby-core:89301] [Ruby trunk Bug#15211] Integer.try_convert Issue #15211 has been reported by nobu (Nobuyoshi Nakada). ---------------------------------------- Bug #15211: Integer.try_convert https://bugs.ruby-lang.org/issues/15211 * Author: nobu (Nobuyoshi Nakada) * Status: Open * Priority: Normal * Assignee: * Target version: * ruby -v: * Backport: 2.3: UNKNOWN, 2.4: UNKNOWN, 2.5: UNKNOWN ---------------------------------------- I found `Integer` doesn't have `try_convert` method, which converts the argument by `to_int` method without explicit conversions like `Integer()`. This is useful to treat an `Integer`-like argument like as methods written in C. https://github.com/nobu/ruby/tree/feature/Integer.try_convert -- https://bugs.ruby-lang.org/ Unsubscribe: