Class::MakeMethods::Template::Flyweight(3pm)

Class::MakeMethods::Template::Flyweight3pm

Deprecated name for insideout

Usage

  package MyObject;
  use Class::MakeMethods::Template::InsideOut (
    new             => [ 'new' ]
    scalar          => [ 'foo', 'bar' ]
  );
  
  package main;
  my $obj = MyObject->new( foo => "Foozle", bar => "Bozzle" );
  print $obj->foo();            # Prints Foozle
  $obj->bar("Bamboozle");       # Sets $obj->{bar}

Overview

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.

Releases

10 releases since Debian 4.0 (Etch); the text changed 3 times.

  1. 4.0–5.0
  2. 6.0–8
  3. 9–11
  4. 12–13

From libclass-makemethods-perl 1.01-7 in Debian 13 (Trixie). Parsed by carta from the page's man source.