decorators {tinsel}R Documentation

Get Function Decorators or Original Function

Description

Get the decorators of a function or the original decoratee function from a decorated function object.

Usage

decorators(f)

original(f)

Arguments

f

A decorated function.

Examples

source_decoratees(tinsel_example('attributes.R'))

# sourced from the 'attributes.R' example file
selector1

# get a list of decorators wrapping a function
decorators(selector1)

# get the original decoratee function of the
# decorated `selector1` function
original(selector1)


[Package tinsel version 0.0.1 Index]