Steve Purkis > Pixie-2.08_02 > Pixie::FinalMethods

Download:
Pixie-2.08_02.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  2
Open  0
View/Report Bugs
Source  

NAME ^

Pixie::FinalMethods - 'fixed' methods that Pixie uses

SYNOPSIS ^

  use Pixie::FinalMethods;

  $hash{$some_object->PIXIE::address} = ...;

DESCRIPTION ^

Pixie has some helper methods that it makes sense to use in an object oriented fashion any object. But these same methods should never be overridden. One option is just to define these methods in UNIVERSAL and to rely on people to be polite. But we are a little more defensive. We push our final methods into the PIXIE namespace. Perl allows you to make a method call to a fully specified method name, so we do that. And it works.

This means that any methods we shove into UNIVERSAL are there to be overridden Pixie::Complicity, though some are more overrideable than others.

syntax highlighting: