Class::Trait 0.21
Sponsored Links
Class::Trait 0.21 Ranking & Summary
File size:
0.033 MB
Platform:
Any Platform
License:
Perl Artistic License
Price:
Downloads:
1114
Date added:
2006-10-05
Publisher:
Stevan Little
Class::Trait 0.21 description
Class::Trait is a Perl implementation of Traits in Perl.
SYNOPSIS
# to turn on debugging (do this before
# any other traits are loaded)
use Class::Trait debug;
# nothing happens, but the module is loaded
use Class::Trait;
# loads these two traits and flatten them
# into the current package
use Class::Trait qw(TPrintable TComparable);
# loading a trait and performing some
# trait operations (alias, exclude) first
use Class::Trait (
TPrintable => {
alias => { "stringValue" => "strVal" },
exclude => "stringValue",
},
);
# loading two traits and performing
# a trait operation (exclude) on one
# module to avoid method conflicts
use Class::Trait
TComparable => {
# exclude the basic equality method
# from TComparable and use the ones
# in TEquality instead.
exclude => [ "notEqualTo", "equalTo" ]
},
TEquality # <- use equalTo and notEqualTo from here
);
# when building a trait, you need it
# to inherit from the trait meta/base-class
# so do this ...
use Class::Trait base;
This document attempts to explain Traits in terms of Perl.
SYNOPSIS
# to turn on debugging (do this before
# any other traits are loaded)
use Class::Trait debug;
# nothing happens, but the module is loaded
use Class::Trait;
# loads these two traits and flatten them
# into the current package
use Class::Trait qw(TPrintable TComparable);
# loading a trait and performing some
# trait operations (alias, exclude) first
use Class::Trait (
TPrintable => {
alias => { "stringValue" => "strVal" },
exclude => "stringValue",
},
);
# loading two traits and performing
# a trait operation (exclude) on one
# module to avoid method conflicts
use Class::Trait
TComparable => {
# exclude the basic equality method
# from TComparable and use the ones
# in TEquality instead.
exclude => [ "notEqualTo", "equalTo" ]
},
TEquality # <- use equalTo and notEqualTo from here
);
# when building a trait, you need it
# to inherit from the trait meta/base-class
# so do this ...
use Class::Trait base;
This document attempts to explain Traits in terms of Perl.
Class::Trait 0.21 Screenshot
Class::Trait 0.21 Keywords
Trait 0.21
TComparable
Perl
Perl Implementation
traits
exclude
0.21
implementation
Class::Trait
ClassTrait
Class::Trait 0.21
Libraries
Programming
Bookmark Class::Trait 0.21
Class::Trait 0.21 Copyright
WareSeeker periodically updates pricing and software information of Class::Trait 0.21 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Class::Trait 0.21 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
traits of a good leader
crc16 perl implementation
personality traits
traits of writing
traits of a leader
traits of a taurus
character traits
traits guy
inherited traits
six traits of writing
traits of a hero
leadership traits
physical traits
traits of the democratic party
traits man
what are traits
filipino traits
traits of a scorpio
Related Software
DCE::Status is a Perl interface of DCE status codes. Free Download
Class::Meta is a Perl class automation, introspection, and data validation. Free Download
Class::Contract - Design-by-Contract OO in Perl. Free Download
Class::Agreement is a Perl module that add contracts to your Perl classes easily. Free Download
Class::Std::Utils is a Perl module for utility subroutines for building "inside-out" objects. Free Download
Class::Date provides a date datatype for Perl. Free Download
DCE::Registry is a Perl interface to DCE Registry API. Free Download
Class::Multimethods::Pure is a Perl module that contains a method-ordered multimethod dispatch. Free Download
Latest Software
Popular Software
Favourite Software