Dianne Skoll
and 1 contributors

NAME

Sendmail::Queue::Base - Base class for Sendmail::Queue's objects

SYNOPSIS

  use base qw( Sendmail::Queue::Base );

  # Generate get_foo, get_bar, set_foo and set_bar accessors
  __PACKAGE__->make_accessors(qw( foo bar ));

DESCRIPTION

This provides constructor generation for Sendmail::Queue's internal objects.

Why not Moose? Or Class::Accessor? Or one of the many others? This module has to work within several different frameworks, some where Moose is not appropriate, and others where additional dependencies aren't possible, so requiring one of the existing modules isn't possible.

METHODS

Class Methods

make_accessors ( @variable_list )

Generates get_ and set_ prefixed getters and setters for every variable in @variable_list. Assumes a hash-based object.

AUTHOR

Dave O'Neill, <support at roaringpenguin.com>

LICENCE AND COPYRIGHT

Copyright (c) 2009 Roaring Penguin Software, Inc. All rights reserved.