Project

General

Profile

Actions

Feature #5220

closed

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

Added by postmodern (Hal Brodigan) over 12 years ago. Updated about 12 years ago.

Status:
Rejected
Assignee:
-
Target version:
[ruby-core:39072]

Description

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

Actions #1

Updated by nobu (Nobuyoshi Nakada) over 12 years ago

  • Tracker changed from Bug to Feature

Updated by nobu (Nobuyoshi Nakada) over 12 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.

Updated by mame (Yusuke Endoh) about 12 years ago

  • Status changed from Open to Rejected

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

--
Yusuke Endoh

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0