BASE-cash-set_attr: Set value of an attribute or a method

BASE$set_attrR Documentation

Set value of an attribute or a method

Description

This function sets the value of an attribute or a method.

Usage

BASE$set_attr(attr_name, attr_val)

Arguments

attr_name

Character. Attribute name.

attr_val

Any value.

Value

Return the object itself.

Examples


test <- BASE$instantiate()
test$set_attr("x", 1)
test$x

bandicoot documentation built on May 29, 2024, 8:01 a.m.