Class::MakeMethodsClass::MakeMethods is a Perl module to generate common types of methods. | |
Download |
Class::MakeMethods Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Matthew Simon Cavalletto
- Publisher web site:
- http://search.cpan.org/~ferrency/
Class::MakeMethods Tags
Class::MakeMethods Description
Class::MakeMethods is a Perl module to generate common types of methods. Class::MakeMethods is a Perl module to generate common types of methods.SYNOPSIS # Generates methods for your object when you "use" it. package MyObject; use Class::MakeMethods::Standard::Hash ( 'new' => 'new', 'scalar' => 'foo', 'scalar' => 'bar', ); # The generated methods can be called just like normal ones my $obj = MyObject->new( foo => "Foozle", bar => "Bozzle" ); print $obj->foo(); $obj->bar("Barbados");The Class::MakeMethods framework allows Perl class developers to quickly define common types of methods. When a module uses Class::MakeMethods or one of its subclasses, it can select from a variety of supported method types, and specify a name for each method desired. The methods are dynamically generated and installed in the calling package.Construction of the individual methods is handled by subclasses. This delegation approach allows for a wide variety of method-generation techniques to be supported, each by a different subclass. Subclasses can also be added to provide support for new types of methods.Over a dozen subclasses are available, including implementations of a variety of different method-generation techniques. Each subclass generates several types of methods, with some supporting their own open-eneded extension syntax, for hundreds of possible combinations of method types. Requirements: · Perl
Class::MakeMethods Related Software