get_slot: Get slot...

Description Usage Arguments Details

View source: R/object-inheritance.r

Description

Get slot

Usage

1
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.


hadley/mutatr documentation built on May 17, 2019, 11:04 a.m.