-
-
18 Oct 2019 19:30:25 UTC
- Distribution: Object-Tiny-RW-XS
- Module version: 0.04
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Repository
- Issues
- Testers (608 / 0 / 0)
- Kwalitee
Bus factor: 0- 84.62% Coverage
- License: perl_5
- Activity
24 month- Tools
- Download (12.27KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- Class::XSAccessor
- Test::More
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
Object::Tiny::RW::XS - Class building as simple as it gets (with rw accessors and XS compatibility)
SYNOPSIS
# Define a class package Foo; use Object::Tiny::RW::XS qw{ bar baz }; 1; # Use the class my $object = Foo->new( bar => 1 ); print "bar is " . $object->bar . "\n"; # 1 $object->bar(2); print "bar is now " . $object->bar . "\n"; # 2
DESCRIPTION
This module is a fork of Object::Tiny::RW. The only difference is that it uses Class::XSAccessor to generate faster accessors and constructors.
Please see Object::Tiny and Object::Tiny::RW for all the original ideas.
To use Object::Tiny::RW::XS, just call it with a list of accessors to be created.
use Object::Tiny::RW::XS 'foo', 'bar';
SUPPORT
Bugs should be reported via the CPAN bug tracker at
http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Object-Tiny-RW-XS
For other issues, contact the author.
AUTHOR
Adam Kennedy <adamk@cpan.org> for original Object::Tiny.
Steffen Schwigon <ss5@renormalist.net> for the Object::Tiny::RW variant.
Adam Hopkins <srchulo@cpan.org<gt> for the Object::Tiny::RW::XS variant.
SEE ALSO
COPYRIGHT
Copyright 2007 - 2008 Adam Kennedy.
Copyright 2009-2011 Steffen Schwigon.
Copyright 2013 Adam Hopkins
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The full text of the license can be found in the LICENSE file included with this module.
Module Install Instructions
To install Object::Tiny::RW::XS, copy and paste the appropriate command in to your terminal.
cpanm Object::Tiny::RW::XS
perl -MCPAN -e shell install Object::Tiny::RW::XS
For more information on module installation, please visit the detailed CPAN module installation guide.