Name
Mo::coerce - Adds the coerce feature to Mo's has
Synopsis
has
name
=> (
coerce
=>
sub
{
uc
$_
[0] } );
Description
Adds the coerce parameter to has, which expects a code reference, which is used to transform the value to be set.
Mo::coerce - Adds the coerce feature to Mo's has
has
name
=> (
coerce
=>
sub
{
uc
$_
[0] } );
Adds the coerce parameter to has, which expects a code reference, which is used to transform the value to be set.