NAME

Class::MaybeXSAccessor - Generate accessors/constructor

VERSION

This document describes version 0.001 of Class::MaybeXSAccessor (from Perl distribution Class-MaybeXSAccessor), released on 2016-05-04.

SYNOPSIS

In lib/Your/Class.pm:

package Your::Class;
use Class::MaybeXSAccessor {
    accessors => [qw/foo bar/],
};

In code that uses your class:

use Your::Class;

my $obj = Your::Class->new;
$obj->foo(1980);
$obj->bar(12);

DESCRIPTION

EARLY, EXPERIMENTAL.

This module can be used to generate accessors/constructor. It will use Class::XSAccessor if available, falling back to Class::Accessor. Note that not all features from Class::Accessor nor Class::XSAccessor are supported.

HOMEPAGE

Please visit the project's homepage at https://metacpan.org/release/Class-MaybeXSAccessor.

SOURCE

Source repository is at https://github.com/perlancar/perl-Class-MaybeXSAccessor.

BUGS

Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=Class-MaybeXSAccessor

When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.

SEE ALSO

Class::Accessor

Class::XSAccessor

Class::MaybeXSAccessor::Array

AUTHOR

perlancar <perlancar@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2016 by perlancar@cpan.org.

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