Query: class::trait::base
OS: debian
Section: 3pm
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
Class::Trait::Base(3pm) User Contributed Perl Documentation Class::Trait::Base(3pm)NAMEClass::Trait::Base - Base class for all TraitsSYNOPSISThis class needs to be inherited by all traits so they can be identified as traits. use Class::Trait 'base';DESCRIPTIONNot much going on here, just an AUTOLOAD method to help properly dispatch calls to "SUPER::" and an "apply" method. ############################################################################## apply require TSomeTrait; TSomeTrait->apply($object); This method allows you to apply a trait to an object. It returns the trait so you can then reapply it: TTricks->apply($dog_object) ->apply($cat_object); This is merely syntactic sugar for the "Class::Trait::apply" method: Class::Trait->apply($dog_object, 'TTricks'); Class::Trait->apply($cat_object, 'TTricks');SEE ALSOClass::Trait, Class::Trait::ConfigMAINTAINERCurtis "Ovid" Poe, "<ovid [at] cpan [dot] org>"AUTHORStevan Little <stevan@iinteractive.com>COPYRIGHT AND LICENSECopyright 2004, 2005 by Infinity Interactive, Inc. <http://www.iinteractive.com> This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.10.0 2010-04-25 Class::Trait::Base(3pm)
Similar Topics in the Unix Linux Community |
---|
[Solved] apply 755 mode recursively |