get_slot {mutatr} | R Documentation |
Get slot
get_slot(obj, name, scope=obj)
obj |
object in which to look for slot |
name |
name of slot to look for |
scope |
self object to use for object context |
Function that powers inheritance. Given an object and a slot name iterators through ancestors looking for slots that match that name.
If the slot is a function, it adjusts the function scope (with
object_scope
) so that the self context is set correctly.