generate_class_methods: Provide a list of class methods.

Description Usage Arguments Value

View source: R/generate_class_methods.R

Description

Provide a list of class methods.

Usage

1
2
generate_class_methods(class_methods, class_name, instance_methods, field_names,
  return_all)

Arguments

class_methods

list. A named list of functions corresponding to methods inherited from the inheritance chain.

class_name

character. The name of the class these methods will belong to.

instance_methods

list. Additional methods provided by the methods parameter to setRefClass.

field_names

character. The names of the fields in the class. Used to verify fields are not getting incorrectly assigned with local (<-) instead of global (<<-) assignment.

return_all

logical. Whether or not to return all methods. # TODO: (RK) What does this mean?

Value

a named list.


robertzk/refclass documentation built on May 25, 2017, 6:37 a.m.