hi, I am comparing objects like

if a.class.to_s == 'hash'
   puts 'hash'
end

Is there any way can i compare objects directly?

Like if a.class==OBJECT
       puts 'hash'
end

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