Class-MakeMethods

 view release on metacpan or  search on metacpan

MakeMethods/Template/Flyweight.pm  view on Meta::CPAN

  package main;

  my $obj = MyObject->new( foo => "Foozle", bar => "Bozzle" );
  print $obj->foo();		# Prints Foozle
  $obj->bar("Bamboozle"); 	# Sets $obj->{bar}

=head1 DESCRIPTION

Earlier versions of this package included a package named Class::MakeMethods::Template::Flyweight.

However, in hindsight, this name was poorly chosen, as it suggests that the Flyweight object design pattern is being used, when the functionality is more akin to what's sometimes known as "inside-out objects."

This functionality is now provided by Class::MakeMethods::Template::InsideOut, of which this is an almost-empty subclass retained to provide backwards compatibility.

=head1 SEE ALSO

L<Class::MakeMethods::Template::InsideOut>.

=cut

MakeMethods/Template/Static.pm  view on Meta::CPAN


  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<Class::MakeMethods::Template::Global>.

=cut

MakeMethods/Template/Struct.pm  view on Meta::CPAN

  package main;

  my $obj = MyObject->new( foo => "Foozle", bar => "Bozzle" );
  print $obj->foo();		# Prints Foozle
  $obj->bar("Bamboozle"); 	# Sets $obj->[1]

=head1 DESCRIPTION

Earlier versions of this package included a package named Class::MakeMethods::Template::Struct.

However, in hindsight, this name was poorly chosen, as it suggests some connection to C-style structs, where the behavior implemented more simply parallels the functionality of Template::Hash and the other Generic subclasses.

This functionality is now provided by Class::MakeMethods::Template::Array, of which this is an empty subclass retained to provide backwards compatibility.

=head1 SEE ALSO

L<Class::MakeMethods::Template::Array>.

=cut



( run in 2.096 seconds using v1.01-cache-2.11-cpan-71847e10f99 )