R.oo (version 1.22.0)

staticCode.Object: Method that will be call each time a new instance of a class is created

Description

Method that will be call each time a new instance of a class is created.

By extending this method it is possible to have static code that is called each time a new instance of a class is created.

Usage

# S3 method for Object
staticCode(static, ...)

Arguments

static

The static instance of this class.

...

Not used.

Value

Returns nothing.

Details

The method extend() in the Object class will call this method just before returning and it will pass the static instance of the class as a reference. Note that method should never be called explicitly.

Any value returned by this method will be ignored.

See Also

For more information see Object.

Examples

Run this code
# NOT RUN {
For a complete example see help(Object).
# }

Run the code above in your browser using DataLab