Erwin Abbott wrote:
> case x
> when Array puts "Array"
> when Proxy puts "Proxy"
> end

Ugly, but you could try:
puts case [x.class]
  when [Array]: "Array"
  when [Proxy]: "Proxy"
  else "Hu?"
end

Regards
Stefan

-- 
Posted via http://www.ruby-forum.com/.