Class-MakeMethods
view release on metacpan or search on metacpan
MakeMethods/Emulator/AccessorFast.pm view on Meta::CPAN
=head1 DESCRIPTION
This module emulates the functionality of Class::Accessor::Fast, using Class::MakeMethods to generate similar methods.
You may use it directly, as shown in the SYNOPSIS above,
Furthermore, you may call C<use Class::MakeMethods::Emulator::AccessorFast
'-take_namespace';> to alias the Class::Accessor::Fast namespace
to this package, and subsequent calls to the original package will
be transparently handled by this emulator. To remove the emulation
aliasing, call C<use Class::MakeMethods::Emulator::AccessorFast
'-release_namespace'>.
B<Caution:> This affects B<all> subsequent uses of Class::Accessor::Fast
in your program, including those in other modules, and might cause
unexpected effects.
=head1 SEE ALSO
MakeMethods/Emulator/MethodMaker.pm view on Meta::CPAN
=item *
Direct Access
Replace occurances in your code of C<Class::MethodMaker> with C<Class::MakeMethods::Emulator::MethodMaker>.
=item *
Install Emulation
If you C<use Class::MakeMethods::Emulator::MethodMaker '-take_namespace'>, the Class::MethodMaker namespace will be aliased to this package, and calls to the original package will be transparently handled by this emulator.
To remove the emulation aliasing, call C<use Class::MakeMethods::Emulator::MethodMaker '-release_namespace'>.
B<Note:> This affects B<all> subsequent uses of Class::MethodMaker in your program, including those in other modules, and might cause unexpected effects.
=item *
The -sugar Option
Passing '-sugar' as the first argument in a use or import call will cause the 'methods' package to be declared as an alias to this one.
MakeMethods/Emulator/Singleton.pm view on Meta::CPAN
# returns same instance
my $two = Class::MakeMethods::Emulator::Singleton->instance();
=head1 COMPATIBILITY
This module emulates the functionality of Class::Singleton, using Class::MakeMethods to generate similar methods.
You may use it directly, as shown in the SYNOPSIS above,
Furthermore, you may call C<use Class::MakeMethods::Emulator::Singleton '-take_namespace';> to alias the Class::Singleton namespace to this package, and subsequent calls to the original package will be transparently handled by this emulator. To remo...
B<Caution:> This affects B<all> subsequent uses of Class::Singleton in your program, including those in other modules, and might cause unexpected effects.
=head1 DESCRIPTION
A Singleton describes an object class that can have only one instance
in any system. An example of a Singleton might be a print spooler
or system registry. This module implements a Singleton class from
which other classes can be derived. By itself, the Class::Singleton
MakeMethods/Emulator/accessors.pm view on Meta::CPAN
use accessors::chained 'foo';
use Class::MakeMethods::Template::Hash 'scalar --get_set_chain' => 'foo';
use accessors::classic 'foo';
use Class::MakeMethods::Template::Hash 'scalar' => 'foo';
You may use this module directly, as shown in the SYNOPSIS above,
Furthermore, you may call C<use Class::MakeMethods::Emulator::accessors
'-take_namespace';> to alias the accessors namespace to this package,
and subsequent calls to the original package will be transparently
handled by this emulator. To remove the emulation aliasing, call
C<use Class::MakeMethods::Emulator::accessors '-release_namespace'>.
The same mechanism is also available for the classic and chained subclasses.
B<Caution:> This affects B<all> subsequent uses of the accessors module in
your program, including those in other modules, and might cause
unexpected effects.
=head1 SEE ALSO
MakeMethods/Emulator/mcoder.pm view on Meta::CPAN
For example, the following lines are equivalent:
use mcoder 'get' => 'foo';
use mcoder::get 'foo';
use Class::MakeMethods::Template::Hash 'scalar --get' => 'foo';
You may use this module directly, as shown in the SYNOPSIS above,
or you may call C<use Class::MakeMethods::Emulator::mcoder
'-take_namespace';> to alias the mcoder namespace to this package,
and subsequent calls to the original package will be transparently
handled by this emulator. To remove the emulation aliasing, call
C<use Class::MakeMethods::Emulator::mcoder '-release_namespace'>.
The same mechanism is also available for the "sugar" subclasses.
B<Caution:> This affects B<all> subsequent uses of the mcoder module in
your program, including those in other modules, and might cause
unexpected effects.
=head1 SEE ALSO
( run in 0.402 second using v1.01-cache-2.11-cpan-0a6323c29d9 )