behave

open override fun behave(block: T.(context: C) -> Unit)

Sets the behavior logic for a target of type T within a specific context of type C. The behavior logic is provided in the form of a lambda function.

Parameters

block

A lambda defining the behavior to be applied, where the target T is the receiver and the context of type C is passed as a parameter.