A class and a constructor function to create boolean trait(let)s.
Super class
RKernel::Trait
-> Boolean
Public fields
value
A logical vector, usually of length 1
optional
Logical, whether an initializing logical value must be provided
coerce
Logical, whether 'as.logical()' is implicitely used when a value is assigned to the trait
length
Integer, the length of the logical vector that poses as the value of the traitlet.
Methods
Inherited methods
Method new()
The initializing method
Usage
BooleanClass$new(
initial,
coerce = TRUE,
optional = length(initial) == 0,
length = 1
)