grapes-ne-grapes-.bandicoot_oop: S3 method of performing the not equals to operator of a...

%ne%.bandicoot_oopR Documentation

S3 method of performing the not equals to operator of a bandicoot_oop object

Description

This function performs the not equals to operator using the ..ne..() method. If it is not applicable, error will be raised.

Usage

## S3 method for class 'bandicoot_oop'
x %ne% y

Arguments

x

bandicoot_oop object.

y

Object.

Value

A Boolean value.

Examples

AGE <- new_class(class_name = "AGE")
age <- AGE$instantiate
register_method(AGE, ..init.. = function(current) self$current = current)
register_method(AGE, ..ne.. = function(y) self$current != y$current)

patrick <- age(33)
james <- age(33)
patrick %ne% james


bandicoot documentation built on May 29, 2024, 8:01 a.m.