Project

General

Profile

Actions

Feature #15211

closed

Integer.try_convert

Added by nobu (Nobuyoshi Nakada) almost 3 years ago. Updated 9 days ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
[ruby-core:89301]

Description

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

Actions

Also available in: Atom PDF