--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) <span dir="ltr">&lt;mahmutbulut0 / gmail.com&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div id=":17">Dear Rubyists, can we add &quot;is_integer?&quot; method tour core for main purposes of checking integerITY?</div></blockquote><div><br></div><div>is_foo? isn&#39;t idiomatic, you should use just foo?</div>

<div><br></div><div>With that out of the way, this already exists in core:</div><div><br></div><div>&gt;&gt; 5.integer?</div><div>=&gt; true</div><div>&gt;&gt; 5.0.integer?</div><div>=&gt; false</div></div>

--e89a8f50397cdde2b404bcb6d038--