Feature #5220

NilClass#to_i should accept an argument to match String#to_i

Added by Hal Brodigan over 2 years ago. Updated about 2 years ago.

[ruby-core:39072]
Status:Rejected
Priority:Normal
Assignee:-
Category:core
Target version:2.0.0

Description

I noticed that NilClass#toi does not accept an additional argument. This differs from String#toi which accepts an optional conversion base.

History

#1 Updated by Nobuyoshi Nakada over 2 years ago

  • Tracker changed from Bug to Feature

#2 Updated by Nobuyoshi Nakada over 2 years ago

  • Target version changed from 1.9.3 to 2.0.0

IO, Integer, Float, Time, etc. have #to_i with no arguments, too.

#3 Updated by Yusuke Endoh about 2 years ago

  • Status changed from Open to Rejected

There is no feedback or revised proposal from OP.
I close this as Rejected.

Yusuke Endoh mame@tsg.ne.jp

Also available in: Atom PDF