Shlomi Fish > Games-Solitaire-Verify > Games::Solitaire::Verify::Base

Download:
Games-Solitaire-Verify-0.1300.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 0.1300   Source  

NAME ^

Games::Solitaire::Verify::Base - a base class.

SYNOPSIS ^

    use parent 'Games::Solitaire::Verify::Base';

    sub _init
    {
        my ($self, $args) = @_;

        $self->address($args->{address});

        if (!exists($args->{name}))
        {
            die "No name - no cry.";
        }

        return;
    }

DESCRIPTION ^

This is the base class for Games::Solitaire::Verify classes. Everything is subject to change.

FUNCTIONS ^

new($args)

The constructor. Blesses and calls _init() .

__PACKAGE__->mk_accessors(qw(method1 method2 method3))

Equivalent to Class::Accessor's mk_accessors only using Class::XSAccessor. It beats running an ugly script on my code, and can be done at run-time.

Gotta love dynamic languages like Perl 5.

__PACKAGE__->mk_acc_ref([qw(method1 method2 method3)])

Creates the accessors in the array-ref of names at run-time.

AUTHOR ^

Shlomi Fish, http://www.shlomifish.org/.

BUGS ^

Please report any bugs or feature requests to bug-games-solitaire-verifysolution-move at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Games-Solitaire-Verify. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT ^

You can find documentation for this module with the perldoc command.

    perldoc Games::Solitaire::Verify

You can also look for information at:

ACKNOWLEDGEMENTS ^

COPYRIGHT & LICENSE ^

Copyright 2008 Shlomi Fish.

This program is released under the following license: MIT/X11 ( http://www.opensource.org/licenses/mit-license.php ).

syntax highlighting: