logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Class::MakeMethods::Evaled - Make methods with simple string evals

Description

       This document describes the various subclasses of Class::MakeMethods included under the Evaled::*
       namespace, and the method types each one provides.

       The Evaled subclasses generate methods using a simple string templating mechanism and basic string evals.

   CallingConventions
       When 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.

   DeclarationSyntax
       To 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.

   AboutEvaledMethods

Name

       Class::MakeMethods::Evaled - Make methods with simple string evals

See Also

       See Class::MakeMethods for general information about this distribution.

       For distribution, installation, support, copyright and license information, see
       Class::MakeMethods::Docs::ReadMe.

perl v5.36.0                                       2022-10-13                           MakeMethods::Evaled(3pm)

Synopsis

         package MyObject;
         use Class::MakeMethods::Evaled::Hash (
           new => 'new',
           scalar => [ 'foo', 'bar' ],
           array => 'my_list',
           hash => 'my_index',
         );

See Also