S3 method of computing the "official" string representation of a
bandicoot_oop
object
Source: R/oop_s3.R
repr.bandicoot_oop.Rd
This function computes the "official" string representation of a
bandicoot_oop
object using the ..repr..()
method.
If it is not applicable, error will be raised.
Usage
# S3 method for bandicoot_oop
repr(x, ...)
Examples
EMAIL <- new_class(class_name = "EMAIL")
email <- EMAIL$instantiate
register_method(EMAIL, ..init.. = function(address) self$address = address)
patrick <- email('patrick@test.com')
repr(patrick)
#> [1] "email(\"patrick@test.com\")"