Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

class::trait::base(3pm) [debian man page]

Class::Trait::Base(3pm) 				User Contributed Perl Documentation				   Class::Trait::Base(3pm)

NAME
Class::Trait::Base - Base class for all Traits SYNOPSIS
This class needs to be inherited by all traits so they can be identified as traits. use Class::Trait 'base'; DESCRIPTION
Not 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 ALSO
Class::Trait, Class::Trait::Config MAINTAINER
Curtis "Ovid" Poe, "<ovid [at] cpan [dot] org>" AUTHOR
Stevan Little <stevan@iinteractive.com> COPYRIGHT AND LICENSE
Copyright 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)

Check Out this Related Man Page

Class::Trait::Lib::TEquality(3pm)			User Contributed Perl Documentation			 Class::Trait::Lib::TEquality(3pm)

NAME
TEquality - Trait for adding equality testing to your object DESCRIPTION
TEquality adds a number of equality testing features, including type-equality as well as object instance equality. REQUIRES
equalTo ($left, $right) The "equalTo" method is expected to return either true if its two arguments are equal (by whatever standards your devise), or false if they are not. OVERLOADS
== != PROVIDES
notEqualTo ($left, $right) This is the inverse of "equalTo". isSameTypeAs ($left, $right) This will determine type equality, meaning it will determine if both arguements are derived from the same type. isExactly ($left, $right) This will attempt to discern whether or not the two arguments given are the same object. It even takes into account the possibility that the objects might also have utilized the TPrintable trait, and so works around that automatic stringification. AUTHOR
Stevan Little <stevan@iinteractive.com> COPYRIGHT AND LICENSE
Copyright 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::Lib::TEquality(3pm)
Man Page