Austin Ziegler <halostatue / gmail.com> wrote:
> interesting, but I'm less convinced that it's necessary. See, you can
> also do:
> 
>   puts "yes" if x.between?(-5, 9)
>   puts "yes" if (-5..9).include?(x)

I still like

class Object
  def in?(other)
    other.include?(self)
  end
end

puts "yes" if x.in?(-5..9)

martin