From: Adam Prescott Date: 2013-03-30T01:47:15+09:00 Subject: Re: Ruby Typing? You could also try x.to_int + y.to_int and use respond_to?(:to_int) for detection. Equally with #to_ary. Duck typing!