Hi,

What is the cleanest way to determine the type of a VALUE when extending
Ruby in C.

I know the TYPE() macro, but I believe there is no T_RANGE defined (and
I want to find out whether my VALUE is a Range or not).

Currently I do a 

	if (funcall(MyValue, "is_a?", 1, rb_cRange) == Qtrue)

...but it does not seem that elegant.

Any tips would be much appreciated.

Thanks.

Christian