Project

General

Profile

Actions

Bug #10393

closed

String#start_with?の1.9.x非互換バグ

Added by choripon (Hideyuki Matsuyama) over 7 years ago. Updated over 7 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Target version:
-
ruby -v:
ruby 2.1.3p242 (2014-09-19 revision 47630) [x86_64-darwin13.0]
[ruby-dev:48650]

Description

$ ruby -v
ruby 1.9.3p547 (2014-05-14 revision 45962) [x86_64-darwin13.4.0]
$ irb
> 'foo'.start_with? nil
 => false 
$ ruby -v
ruby 2.1.3p242 (2014-09-19 revision 47630) [x86_64-darwin13.0]
$ irb
> 'foo'.start_with? nil
TypeError: no implicit conversion of nil into String

バージョン1.9系との互換性を保つため、結果がfalseになることを期待します。

Actions

Also available in: Atom PDF