|
NAMEVenus::Role::Accessible - Accessible Role ABSTRACTAccessible Role for Perl 5 SYNOPSIS package Example;
use Venus::Class;
with 'Venus::Role::Accessible';
attr 'value';
sub downcase {
lc $_[0]->value
}
sub upcase {
uc $_[0]->value
}
package main;
my $example = Example->new(value => 'hello, there');
# $example->value;
DESCRIPTIONThis package modifies the consuming package and provides the "access" method for getting and setting attributes. METHODSThis package provides the following methods: accessaccess(string $name, any $value) (any) The access method gets or sets the class attribute specified. Since 1.23
assignassign(string $name, string | coderef $code, any @args) (any) The assign method dispatches the method call or executes the callback, sets the class attribute specified to the result, and returns the result. 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.
|