From: Joel VanderWerf Date: 2008-01-24T16:19:57+09:00 Subject: Re: How to judge the type of an object which is passed as an argument from Ruby to C? shiwei zhang wrote: > how should I judge/decide > the variable vsubject is a Rat object, or a Buffalo object, or a > String? If you want to include inheritance: rb_obj_is_kind_of(obj, some_class) If you do not, you can use the CLASS_OF macro: CLASS_OF(obj) == some_class -- vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407