[#83107] Alias Enumerable#include? to Enumerable#includes? — Alberto Almagro <albertoalmagro@...>

Hello,

9 messages 2017/10/04

[ruby-core:83192] [Ruby trunk Bug#13992] Strange behaviour for kernel#integer method

From: ivan.lasorsa@...
Date: 2017-10-10 08:47:47 UTC
List: ruby-core #83192
Issue #13992 has been reported by Ursus (Ivan Lasorsa).

----------------------------------------
Bug #13992: Strange behaviour for kernel#integer method
https://bugs.ruby-lang.org/issues/13992

* Author: Ursus (Ivan Lasorsa)
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: 2.4.1
* Backport: 2.3: UNKNOWN, 2.4: UNKNOWN
----------------------------------------
I tried this one with ruby 2.3.1 and ruby 2.4.1.

~~~ ruby
Integer('04')
4
Integer('05')
5
Integer('08')
ArgumentError: invalid value for Integer(): "08"
Integer('09')
ArgumentError: invalid value for Integer(): "09"
~~~

Does this makes sense?



-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:[email protected]?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread

Prev Next