The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Muster::Hook::DeriveFields - Muster hook for field derivation

VERSION

version 0.62

DESCRIPTION

Muster::Hook::DeriveFields does field derivation; that is, derives field values from other fields (aka the meta-data for the Leaf).

This just does a bunch of specific calculations; I haven't figured out a good way of defining derivations in a config file.

METHODS

register

Initialize, and register hooks.

process

Process (scan or modify) a leaf object. This only does stuff in the scan phase. This expects the leaf meta-data to be populated.

  my $new_leaf = $self->process(%args);