Issue #6245 has been updated by regularlambda (Mahmut Bulut).


They want it, i write it. Sorry if i have a fault.


aprescott (Adam Prescott) wrote:
> On Mon, Apr 2, 2012 at 19:58, regularlambda (Mahmut Bulut) <
>  mahmutbulut0 / gmail.com> wrote:
>  
>  > Dear Rubyists, can we add "is_integer?" method to our core for main
>  > purposes of checking integerITY?
>  >
>  
>  is_foo? isn't idiomatic, you should use just foo?
>  
>  With that out of the way, this already exists in core:
>  
>  >> 5.integer?
>  => true
>  >> 5.0.integer?
>  => false


----------------------------------------
Feature #6245: "is_integer?" method declaration in prelude
https://bugs.ruby-lang.org/issues/6245#change-25616

Author: regularlambda (Mahmut Bulut)
Status: Open
Priority: Normal
Assignee: 
Category: 
Target version: 2.0.0


Dear Rubyists, can we add "is_integer?" method to our core for main purposes of checking integerITY?
I add it to "golf_prelude.rb" below of "to_a" stub.

https://github.com/ruby/ruby/pull/112

https://github.com/ruby/ruby/pull/112.patch

**This can be in class Fixnum. I don't know this is true place for it?


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