Data::Object::Class
Data-Object Class Declaration
package Person; use Data::Object::Class; extends 'Identity'; 1;
This package modifies the consuming package making it a class.
This package inherits behaviors from:
Moo
This package integrates behaviors from:
Data::Object::ClassHas
This package uses type constraints defined by:
Data::Object::Library
This package provides the following keywords.
package Person; use Data::Object 'Class'; extends 'Identity'; 1;
The extends keyword is used to declare superclasses your class will inherit from. See Moo for more information.
extends
package Person; use Data::Object 'Class'; has fname => ( is => 'ro', isa => 'Str' ); has lname => ( is => 'ro', isa => 'Str' ); 1;
The has keyword is used to declare class attributes, which can be accessed and assigned to using the built-in getter/setter or by the object constructor. See Moo for more information.
has
package Person; use Data::Object 'Class'; with 'Employable'; 1;
The with keyword is used to declare roles to be used and compose into your class. See Moo for more information.
with
Al Newkirk, +319
+319
Anthony Brummett, +10
+10
Adam Hopkins, +2
+2
José Joaquín Atria, +1
+1
Al Newkirk, awncorp@cpan.org
awncorp@cpan.org
Copyright (C) 2011-2019, Al Newkirk, et al.
This is free software; you can redistribute it and/or modify it under the terms of the The Apache License, Version 2.0, as elucidated here, https://github.com/iamalnewkirk/do/blob/master/LICENSE.
Wiki
Project
Initiatives
Milestones
Contributing
Issues
To get the most out of this distribution, consider reading the following:
Do
Data::Object
Data::Object::Role
Data::Object::RoleHas
To install Do, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Do
CPAN shell
perl -MCPAN -e shell install Do
For more information on module installation, please visit the detailed CPAN module installation guide.