NAME
Data::Object::Array - Perl module for providing OO methods to perl arrays.
DESCRIPTION
This module makes use of Moose::Meta::Attribute::Native::Trait::Array to gain OO array methods without re-inventing the wheel.
Each method from Moose::Meta::Attribute::Native::Trait::Array is availible.
ATTRIBUTES
- raw
-
Overload raw so we can have some native array methods
METHODS
- _get
-
Retrieve a value from the raw
- _set
-
Set replacement I want the original data strucuture modified
- first
-
Replacement for first, so that $_ is a D:O object
- grep
-
Wrapper for core grep to make $_ be a D:O object
- map
-
Wrapper for core map to make $_ be a D:O object
- AUTOLOAD
-
AUTOLOAD Wrappers for all methods that could take in or return refs
If they return refs then we want them to be wrapped in D:O objects.
if they consume refs we want to make sure they are not D:O objects but the raws instead.
AUTHOR
Jason Fried <fried@cpan.org>
COPYRIGHT AND LICENSE
Copyright (C) 2011 by Jason Fried. All rights reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.