Boolean: Boolean

BooleanR Documentation

Boolean

Description

A boolean field

Super classes

staypuft::FieldABC -> staypuft::Field -> Boolean

Methods

Public methods

Inherited methods

Method new()

Create a new Boolean object

Usage
Boolean$new(..., truthy = NULL, falsy = NULL)
Arguments
truthy

Values that will (de)serialize to TRUE. If an empty set, any non-falsy value will deserialize to TRUE. If NULL, xx will be used.

falsy

Values that will (de)serialize to FALSE. If NULL, xx will be used.


Method serialize_()

Usage
Boolean$serialize_(value, attr = NULL, obj = NULL)

Method deserialize_()

Usage
Boolean$deserialize_(value, attr = NULL, data = NULL)

Method clone()

The objects of this class are cloneable with this method.

Usage
Boolean$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.


ropensci/staypuft documentation built on Sept. 9, 2022, 4:35 p.m.