Class::MakeMethods::Template::Generic

Class::MakeMethods::Template::Generic Perl module contains templates for common meta-method types.
Download

Class::MakeMethods::Template::Generic 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::Template::Generic Tags


Class::MakeMethods::Template::Generic Description

Class::MakeMethods::Template::Generic Perl module contains templates for common meta-method types. Class::MakeMethods::Template::Generic Perl module contains templates for common meta-method types.SYNOPSIS package MyObject; use Class::MakeMethods ( 'Template::Hash:new' => , 'Template::Hash:scalar' => 'Template::Static:scalar' => ); package main; my $obj = MyObject->new( foo => "Foozle", bar => "Bozzle" ); print $obj->foo(); $obj->bar("Bamboozle"); This package provides a variety of abstract interfaces for constructors and accessor methods, which form a common foundation for meta-methods provided by the Hash, Scalar, Flyweight, Static, PackageVar, and ClassVar implementations.Generally speaking, the Generic meta-methods define calling interfaces and behaviors which are bound to differently scoped data by each of those subclasses.new ConstructorThere are several types of hash-based object constructors to choose from.Each of these methods creates and returns a reference to a new blessed instance. They differ in how their (optional) arguments are interpreted to set initial values, and in how they operate when called as class or instance methods. Requirements: · Perl


Class::MakeMethods::Template::Generic Related Software