https://redmine.ruby-lang.org/https://redmine.ruby-lang.org/favicon.ico?17113305112016-12-12T07:18:29ZRuby Issue Tracking SystemRuby master - Feature #13025: String equality operator does not perform implicit conversionhttps://redmine.ruby-lang.org/issues/13025?journal_id=619812016-12-12T07:18:29Znobu (Nobuyoshi Nakada)nobu@ruby-lang.org
<ul><li><strong>Tracker</strong> changed from <i>Bug</i> to <i>Feature</i></li><li><strong>Description</strong> updated (<a title="View differences" href="/journals/61981/diff?detail_id=43351">diff</a>)</li><li><strong>Status</strong> changed from <i>Open</i> to <i>Feedback</i></li></ul><p>What documentation do you refer?<br>
The document of 2.3 says:</p>
<blockquote>
<p>If <code>obj</code> is not an instance of String but responds to <code>to_str</code>, then the<br>
two strings are compared using case equality <code>Object#===</code>.</p>
</blockquote>
<p>(the method to be called is wrong, though)</p>
<p>Do you suggest changing the fallback method?</p>