Hash::Layout::Level - Level definition object for Hash::Layout
This class is used internally by Hash::Layout and is not meant to be called directly. The list of hashrefs supplied to the levels param in the Hash::Layout constructor are each used as the constructor arguments passed to this class which create separate Hash::Layout::Level objects for each level.
Hash::Layout
Hash::Layout::Level
Please refer to the main Hash::Layout documentation for more info.
The index value of the level (first level is at index 0). This is automatically supplied internally by Hash::Layout.
0
An optional name/string value for this level. This is purely informational and is not currently being used for anything.
The character (or string) that is used by Hash::Layout when resolving composite key strings in to fully qualified key paths and identifying which part of the composite key should map to this level.
Defaults to a single forward-slash (/).
/
An optional list (ArrayRef coerced into HashRef) of keys that are associated specifically with this level. Like delimiter, this meta-data is used by Hash::Layout purely for mapping the sub-strings of a composite key to a specific level.
delimiter
See the implementation of filter() in DBIx::Class::Schema::Diff for the best example of how registered_keys can be used.
registered_keys
Henry Van Styn <vanstyn@cpan.org>
This software is copyright (c) 2014 by IntelliTree Solutions llc.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Hash::Layout, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Hash::Layout
CPAN shell
perl -MCPAN -e shell install Hash::Layout
For more information on module installation, please visit the detailed CPAN module installation guide.