and x.kind_of?(Fixnum) in addition to Adam's points


On Fri, Mar 29, 2013 at 9:47 AM, Adam Prescott <adam / aprescott.com> wrote:

> You could also try x.to_int + y.to_int and use respond_to?(:to_int)
> for detection. Equally with #to_ary. Duck typing!
>
>


-- 
vizualize.me/cliffrosson