classp
classp(g_objectsu_class) =>t/nil
Description
Checks if the given object is an instance of the given class or is an instance of one of its subclasses.
Arguments
Value Returned
|
If the given object is an instance of the class or a subclass of the class. |
|
|
The given object is not an instance of the class or a subclass of the class. |
Examples
classp( 5 classOf( 5 )) => t
classp( 5 'fixnum ) => t
classp( 5 'string ) => nil
classp( 5 'noClass )
*Error* classp: second argument must be a class - nil
Related Topics
Return to top