This function gets the value of an attribute or a method.
Arguments
- attr_name
Character. Attribute name.
Value
The attribute value.
Examples
BASE$get_attr("test")
#> NULL
BASE$get_attr("..methods..")
#> function ()
#> {
#> ..mro_current.. <- "BASE"
#> names(self)[unlist(lapply(names(self), function(x) is.function(self[[x]])))]
#> }
#> <environment: 0x125c124e8>