Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Perl Modules

    MooseX::Attribute::Prototype 0.10

    Download button

    No screenshots available
    Downloads: 195  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Christopher Brown | More programs
    Perl Artistic License / FREE
    June 15th, 2010, 23:25 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    MooseX::Attribute::Prototype description

    Borrow and Extend Moose Attrtibutes

    MooseX::Attribute::Prototype is a Perl module that implements attribute prototyping -- the practice of borrowing an attribute from a role and optionally overriding/extending the attribute definition. This is This works very similar to Moose's native attribute cloning, but allows for additional benefits such as changing the name of the attribute and the abstracting of attributes into roles.

    Attributes are very often designed as objects that have their own types and methods associated with them. MooseX::Attribute::Prototype takes a very pragmatic view of attributes. They are the fundamental building blocks of a class. This module promotes a more natural reuse of attributes.

    When your attribute includes a prototype specification, the attribute is copied from the role and attribute. In many situations, all you will want is declare a prototype. All current specifications override those provided by prototype.

    SYNOPSIS

     package MyClass;
     use Moose;
     use MooseX::Attribute::Prototype;
     
     has 'my_attr' => (
     is => 'rw' ,
     isa => 'Str' ,
     prototype => 'MyRole/my_attr' ,
     );
     
     
     has 'my_attr_2' => prototype => 'MyRole2/my_attr_2';
     
     has 'my_attr_3' => prototype => 'MyRole3'; # Same as 'MyRole3/myrole3'



    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    attribute prototyping | moose Attrtibutes | Perl module | MooseX | attribute | prototyping

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM