Data::Object::Box
Boxing for Perl 5 Data Objects
package main; use Data::Object::Box; my $boxed = Data::Object::Box->new( source => [1..4] ); # my $iterator = $boxed->iterator; # $iterator->next;
This package provides a pure Perl boxing mechanism for wrapping chaining method calls across data objects.
This package integrates behaviors from:
Data::Object::Role::Buildable
Data::Object::Role::Proxyable
This package uses type constraints from:
Data::Object::Types
This package has the following attributes:
source(Any)
This attribute is read-only, accepts (Any) values, and is optional.
(Any)
This package implements the following methods:
value() : Any
The value method returns the underlying wrapped value, i.e. the value in the source attribute.
source
# given: synopsis $boxed->value;
Al Newkirk, awncorp@cpan.org
awncorp@cpan.org
Copyright (C) 2011-2019, Al Newkirk, et al.
This is free software; you can redistribute it and/or modify it under the terms of the The Apache License, Version 2.0, as elucidated in the "license file".
Wiki
Project
Initiatives
Milestones
Contributing
Issues
To install Data::Object, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Data::Object
CPAN shell
perl -MCPAN -e shell install Data::Object
For more information on module installation, please visit the detailed CPAN module installation guide.