From: Adam Prescott Date: 2012-04-03T04:01:22+09:00 Subject: [ruby-core:44083] Re: [ruby-trunk - Feature #6245][Open] "is_integer?" method declaration in prelude --e89a8f50397cdde2b404bcb6d038 Content-Type: text/plain; charset=UTF-8 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 --e89a8f50397cdde2b404bcb6d038 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Mon, Apr 2, 2012 at 19:58, regularlambda (Mahmut Bulut) <mahmutbulut0@gmail.com&= gt; 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:<= /div>

>> 5.integer?
=3D> true
>> 5.0.integer?
=3D> false
--e89a8f50397cdde2b404bcb6d038--