From bcbf441e09fb502cf64924ff2530fa144bdf52c5 Mon Sep 17 00:00:00 2001 From: Andreas Brachold Date: Mon, 13 Aug 2007 18:41:27 +0000 Subject: * Move files to trunk --- lib/Class/MakeMethods/Template/Static.pm | 41 ++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 lib/Class/MakeMethods/Template/Static.pm (limited to 'lib/Class/MakeMethods/Template/Static.pm') diff --git a/lib/Class/MakeMethods/Template/Static.pm b/lib/Class/MakeMethods/Template/Static.pm new file mode 100644 index 0000000..4dfccca --- /dev/null +++ b/lib/Class/MakeMethods/Template/Static.pm @@ -0,0 +1,41 @@ +package Class::MakeMethods::Template::Static; + +use Class::MakeMethods::Template::Global '-isasubclass'; + +$VERSION = 1.008; + +1; + +__END__ + +=head1 NAME + +Class::MakeMethods::Template::Static - Deprecated name for Global + +=head1 SYNOPSIS + + package MyObject; + use Class::MakeMethods::Template::Global ( + scalar => [ 'foo' ] + ); + + package main; + + MyObject->foo('bar') + print MyObject->foo(); + ... + print $my_instance->foo(); # same thing + +=head1 DESCRIPTION + +Earlier versions of this package included a package named Class::MakeMethods::Template::Static. + +However, in hindsight, this name was poorly chosen, as it suggests a constant, unchanging value, whereas the actual functionality is akin to traditional "global" variables. + +This functionality is now provided by Class::MakeMethods::Template::Global, of which this is an empty subclass retained to provide backwards compatibility. + +=head1 SEE ALSO + +L. + +=cut \ No newline at end of file -- cgit v1.2.3