Class-Property
view release on metacpan or search on metacpan
lib/Class/Property.pm view on Meta::CPAN
{
no strict 'refs';
*{$prop_methodname} = $prop_method;
}
}
return $package;
};
push @EXPORT, 'property';
sub property{ return $make_property->( (caller)[0], @_);}
push @EXPORT, 'rw_property';
sub rw_property{ return $make_property->( (caller)[0], map{$_ => {'set' => undef, 'get' => undef }} @_);}
push @EXPORT, 'ro_property';
sub ro_property{ return $make_property->( (caller)[0], map{$_ => {'get' => undef }} @_);}
push @EXPORT, 'wo_property';
sub wo_property{ return $make_property->( (caller)[0], map{$_ => {'set' => undef }} @_);}
__END__
=head1 NAME
Class::Property - Perl implementation of class properties.
=head1 VERSION
Version 1.002
( run in 0.812 second using v1.01-cache-2.11-cpan-a3c8064c92c )