Fast Mojo-style accessors
C Perl Objective-C C++ Perl6
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib/Mojo/Base
t
xt
.gitignore
Changes
MANIFEST.SKIP
Makefile.PL
MurmurHashNeutral2.h
README
XS.xs
cxsa_hash_table.c
cxsa_hash_table.h
cxsa_locking.c
cxsa_locking.h
cxsa_main.c
cxsa_main.h
cxsa_memory.c
cxsa_memory.h
hash_table.h
ppport.h

README

NAME

    Mojo::Base::XS - very fast Mojo-styled accessors

INSTALLATION

        perl Makefile.PL
        make
        make test
        make install

SYNOPSIS

        # Replace Mojo::Base
        use Mojo::Base::XS -infect;
        package Foo;
        use Mojo::Base;

        has foo => 'bar';
        has [qw/x y z/] => 42;
        has foo_defaults => sub { Bar->new };

        # Or use as standalone accessor generator
        package Bar;
        use Mojo::Base::XS;

        has bar => 'bar';
        has [qw/x y z/] => 42;
        has bar_defaults => sub { Baz->new };

    Mojo::Base::XS also allows you to run existing applications
    without any modifications:

        perl -MMojo::Base::XS=-infect script/your_app

DESCRIPTION

    Mojo::Base::XS implements fast accessrors for Mojo-based software.
    Code based on Class::XSAccessor - fastes Perl accessors.

    It can also be used as standalone Mojo-style accessors generator.

SEE ALSO

    * Class::XSAccessor
    * Mojo::Base

AUTHOR

    Yaroslav Korshak <yko@cpan.org>

LICENCE AND COPYRIGHT

    Copyright (C) 2011-2013, Yaroslav Korshak

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