|
NAMEVenus::Kind::Value - Value Base Class ABSTRACTValue Base Class for Perl 5 SYNOPSIS package Example;
use Venus::Class;
base 'Venus::Kind::Value';
sub test {
$_[0]->get + 1
}
package main;
my $example = Example->new(1);
# $example->defined;
DESCRIPTIONThis package provides identity and methods common across all Venus value classes. INHERITSThis package inherits behaviors from: Venus::Kind INTEGRATESThis package integrates behaviors from: Venus::Role::Accessible Venus::Role::Buildable Venus::Role::Explainable Venus::Role::Pluggable Venus::Role::Proxyable Venus::Role::Valuable METHODSThis package provides the following methods: castcast(string $kind) (object | undef) The cast method converts "value" objects between different "value" object types, based on the name of the type provided. This method will return "undef" if the invocant is not a Venus::Kind::Value. Since 0.08
defineddefined() (number) The defined method returns truthy or falsy if the underlying value is "defined". Since 0.01
explainexplain() (any) The explain method returns the value set and is used in stringification operations. Since 0.01
mutatemutate(string | coderef $code, any @args) (object) The mutate method dispatches the method call or executes the callback and returns the result, which if is of the same type as the invocant's underlying data type will update the object's internal state or will throw an exception. Since 1.23
AUTHORSAwncorp, "awncorp@cpan.org" LICENSECopyright (C) 2022, Awncorp, "awncorp@cpan.org". This program is free software, you can redistribute it and/or modify it under the terms of the Apache license version 2.0.
|