Class::Accessor::Assert

Current version is 1.40.

Note

Originally written by Simon Cozens, I just maintain this distribution.

Download

Distribution from this site.
CPAN site

README

NAME
    Class::Accessor::Assert - Accessors which type-check

SYNOPSIS
      use Class::Accessor::Assert;
      __PACKAGE__->mk_accessors( qw( +foo bar=Some::Class baz ) );

DESCRIPTION
    This is a version of Class::Accessor which offers rudimentary
    type-checking and existence-checking of arguments to constructors and
    set accessors.

    To specify that a member is mandatory in the constructor, prefix its
    name with a "+". To specify that it needs to be of a certain class when
    setting that member, suffix "=CLASSNAME". Unblessed reference types such
    as "=HASH" or "=ARRAY" are acceptable.

SEE ALSO
    Class::Accessor

INSTALLATION

To install this module type the following:

   perl Build.PL
   ./Build
   ./Build test
   ./Build install

On platforms that don't support the "./" notation, that would be:

   perl Build.PL
   perl Build
   perl Build test
   perl Build install

If you wish, you may use the old MakeMaker style instead:

   perl Makefile.PL
   make
   make test
   make install

AUTHOR
    Maintained by
      Steffen Mueller, 
    Original author is
      Simon Cozens, 
    Please direct any inquiries, bug reports and the like towards the
    maintainer. Simon does not support this module any more.

COPYRIGHT AND LICENSE
    Copyright 2003 by Simon Cozens

    This library is free software; you can redistribute it and/or modify it
    under the same terms as Perl itself.

	

Documentation

Class::Accessor::Assert

Change Log

Revision history for Perl extension Class::Accessor::Assert.

1.40 Tue Sep 05 15:40 GMT+1 2006
  - Now works with newer Class::Accessor's (0.25 and up, I think)
  - Requires 0.25 and up.

1.22 Thu Oct 06 21:25 GMT+1 2005
  - Distribution upgrade
  - now using Module::Build.

1.21 Tue Oct 19 17:12 GMT+1 2004
  - Maintainer now Steffen Mueller.
  - Removed Carp::Assert requirement from Makefile.PL
  - Some restructuring of distribution.

1.2 Sat May  1 12:04 BST 2004
  - Don't need Carp::Assert.

1.1 Sun Dec 21 15:07 GMT 2003
  - Allow setting to undef.

0.01 Fri Dec 19 20:43 2003
	- original version; created by h2xs 1.22 with options
		-AX -b 5.6.0 -n Class::Accessor::Assert

    

(c) 2002-2008 Steffen Müller; All rights reserved.

Valid HTML 4.0!