get_slot {mutatr}R Documentation

Get slot...

Description

Get slot

Usage

get_slot(obj, name, scope=obj)

Arguments

obj object in which to look for slot
name name of slot to look for
scope self object to use for object context

Details

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.


[Package mutatr version 0.1 Index]