Class::Accessor::Complex

Arrays, hashes, booleans, integers, sets and more
Download

Class::Accessor::Complex Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Marcel GrĂ¼nauer
  • Publisher web site:
  • http://search.cpan.org/~marcel/

Class::Accessor::Complex Tags


Class::Accessor::Complex Description

Arrays, hashes, booleans, integers, sets and more Class::Accessor::Complex is a Perl module that generates accessors for your class in the same spirit as Class::Accessor does. While the latter deals with accessors for scalar values, this module provides accessor makers for arrays, hashes, integers, booleans, sets and more.As seen in the synopsis, you can chain calls to the accessor makers. Also, because this module inherits from Class::Accessor, you can put a call to one of its accessor makers at the end of the chain.The accessor generators also generate documentation ready to be used with Pod::Generated.SYNOPSIS package MyClass; use base 'Class::Accessor::Complex'; __PACKAGE__ ->mk_new ->mk_array_accessors(qw(an_array)) ->mk_hash_accessors(qw(a_hash)) ->mk_integer_accessors(qw(an_integer)) ->mk_class_hash_accessors(qw(a_hash)) ->mk_set_accessors(qw(testset)) ->mk_object_accessors('Some::Foo' => { slot => 'an_object', comp_mthds => }); Requirements: · Perl


Class::Accessor::Complex Related Software