NAME

Data::Object::Box

ABSTRACT

Boxing for Perl 5 Data Objects

SYNOPSIS

package main;

use Data::Object::Box;

my $boxed = Data::Object::Box->new(
  source => [1..4]
);

# my $iterator = $boxed->iterator;

# $iterator->next;

DESCRIPTION

This package provides a pure Perl boxing mechanism for wrapping chaining method calls across data objects.

INTEGRATES

This package integrates behaviors from:

Data::Object::Role::Buildable

Data::Object::Role::Proxyable

LIBRARIES

This package uses type constraints from:

Data::Object::Types

ATTRIBUTES

This package has the following attributes:

source

source(Any)

This attribute is read-only, accepts (Any) values, and is optional.

METHODS

This package implements the following methods:

value

value() : Any

The value method returns the underlying wrapped value, i.e. the value in the source attribute.

value example #1
# given: synopsis

$boxed->value;

AUTHOR

Al Newkirk, awncorp@cpan.org

LICENSE

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".

PROJECT

Wiki

Project

Initiatives

Milestones

Contributing

Issues