brian d foy > Brick-0.226_02 > Brick::Result

Download:
Brick-0.226_02.tar.gz

Dependencies

Annotate this POD

Module Version: 1.2183   Source  

NAME ^

Brick::Result - the result of applying a profile

SYNOPSIS ^

        use Brick;
        
        my $result = $brick->apply( $Profile, $Input );

        $result->explain;

DESCRIPTION ^

This class provides methods to turn the data structure returned by apply() into a useable form for particular situations.

Class methods

result_item_class

Loads and returns the class name to use for the elements of the Results data structure.

Instance methods

explain

Create a string the shows the result in an outline form.

flatten

Collapse the result structure to an array of flat hashes.

flatten_by_field

Similar to flatten, but keyed by the field that failed the constraint.

flatten_by

Similar to flatten, but keyed by the hash key named in the argument list.

dump

What should this do?

TO DO ^

TBA

SEE ALSO ^

Brick::Tutorial, Brick::UserGuide

SOURCE AVAILABILITY ^

This source is part of a SourceForge project which always has the latest sources in SVN, as well as all of the previous releases.

        svn co https://brian-d-foy.svn.sourceforge.net/svnroot/brian-d-foy brian-d-foy

If, for some reason, I disappear from the world, one of the other members of the project can shepherd this module appropriately.

AUTHOR ^

brian d foy, <bdfoy@cpan.org>

COPYRIGHT ^

Copyright (c) 2007, brian d foy, All Rights Reserved.

You may redistribute this under the same terms as Perl itself.

syntax highlighting: