Class::MakeMethods::Composite

Class::MakeMethods::Composite is a Perl module to make extensible compound methods.
Download

Class::MakeMethods::Composite Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Matthew Simon Cavalletto
  • Publisher web site:
  • http://search.cpan.org/~ferrency/

Class::MakeMethods::Composite Tags


Class::MakeMethods::Composite Description

Class::MakeMethods::Composite is a Perl module to make extensible compound methods. Class::MakeMethods::Composite is a Perl module to make extensible compound methods.SYNOPSIS package MyObject; use Class::MakeMethods::Composite::Hash ( new => 'new', scalar => , array => 'my_list', hash => 'my_index', );This document describes the various subclasses of Class::MakeMethods included under the Composite::* namespace, and the method types each one provides.The Composite subclasses provide a parameterized set of method-generation implementations.Subroutines are generated as closures bound to a hash containing the method name and additional parameters, including the arrays of subroutine references that will provide the method's functionality.Calling ConventionsWhen you use this package, the method names you provide as arguments cause subroutines to be generated and installed in your module.See "Calling Conventions" in Class::MakeMethods::Standard for more information.Declaration SyntaxTo declare methods, pass in pairs of a method-type name followed by one or more method names.Valid method-type names for this package are listed in "METHOD GENERATOR TYPES".See "Declaration Syntax" in Class::MakeMethods::Standard and "Parameter Syntax" in Class::MakeMethods::Standard for more information.About Composite MethodsThe methods generated by Class::MakeMethods::Composite are assembled from groups of "fragment" subroutines, each of which provides some aspect of the method's behavior.You can add pre- and post- operations to any composite method. package MyObject; use Class::MakeMethods::Composite::Hash ( new => 'new', scalar => , 'post_rules' => , } ], ); Requirements: · Perl


Class::MakeMethods::Composite Related Software