I think instance_of can serve my purpose.
Hemant Bhargava wrote: > Hello All, > > I want to know that is there anything in ruby by which i can know that > which kind of object is this..? Something like is_object? :) > > I mean.. lets suppose i have two objects of Model ABC and Model DEF.. > then i want to execute some conditions based upon the type of objects. > > Thanks in advance. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.