|
| |||||||||||||||
See also: is_type_for
is_a allows the programmer to check whether the _subject of the call has
an ancestor ( _parent ) equal to the specified ancestor_maybe parameter.
| Parameter key | Default value | Type |
| ancestor_maybe | req |
_subject.
If _subject has a parent that is the value of the ancestor_maybe argument,
true is returned.
3.<is_a number />
true3.<is_a integer />
true3.14.<is_a number />
true3.14.<is_a integer />
falseis_a looks up through the subject's ancestor chain for
a match with ancestor_maybe . Using the same and lookup
parameters, a programmer can modify the behavior of the is_a method.
| Parameter key | Default value | Type |
| same | false | boolean |
same=true, then true is also returned if
_subject is the same object as given for ancestor_maybe.
| Parameter key | Default value | Type |
| lookup | true | boolean |
lookup=true, then true is also returned if
_subject has an ancestor that is the same as ancestor_maybe.
© Copyright 2007 Clear Methods, Inc.