Ctx

sealed trait Ctx

A rule context is a trie map of strings. It allows for providing scoped values that can be used in the rules.

Companion:
object
class Object
trait Matchable
class Any

Value members

Abstract methods

def get(path: List[String]): Option[String]

Retrieves the value at the given path if any

Retrieves the value at the given path if any

Concrete methods

def get(path: NonEmptyList[String]): Option[String]

Retrieves the value at the given path if any

Retrieves the value at the given path if any

def set(path: NonEmptyList[String], value: String): Ctx

Adds a value at the given key. This function replaces any existing value or sub tree at this path.

Adds a value at the given key. This function replaces any existing value or sub tree at this path.