|
NAMEVenus::Role::Valuable - Valuable Role ABSTRACTValuable Role for Perl 5 SYNOPSISpackage Example; use Venus::Class; with 'Venus::Role::Valuable'; package main; my $example = Example->new; # $example->value; DESCRIPTIONThis package modifies the consuming package and provides a "value" attribute which defaults to what's returned by the "default" method, as well as "get" and "set" methods for modifying the value. ATTRIBUTESThis package has the following attributes: valuevalue(Any) This attribute is read-write, accepts "(Any)" values, and is optional. METHODSThis package provides the following methods: defaultdefault() (any) The default method returns the default value, i.e. "undef". Since 0.01
getget() (any) The get method gets and returns the value. Since 0.01
setset(any $value) (any) The set method set the value and returns the value set. Since 0.01
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.
|