---
name: "Forest::Tree::Roles::MetaData"
section: "3pm"
platform: "linux"
package: "libforest-perl"
version: "0.10-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Forest::Tree::Roles::MetaData"
---

# Forest::Tree::Roles::MetaData(3pm)

A role mixin to support tree node metadata

## NAME

Forest::Tree::Roles::MetaData - A role mixin to support tree node metadata

## DESCRIPTION

This role mixin adds support for each tree node to have arbitrary metadata stored in a HASHref. The metadata is inherited in the tree as well, so a child will inherit the parents metadata.

This is really useful, at least for me it is :)

## ATTRIBUTES

- *metadata*

  ## METHODS

- **fetch\_metadata\_for ($key)**

  This will first check locally, if it doesn't fund anything then will climb back to the root looking.

## BUGS

All complex software has bugs lurking in it, and this module is no exception. If you find a bug please either email me, or add the bug to cpan-RT.

## AUTHOR

Stevan Little \<stevan.little@iinteractive.com\>

## COPYRIGHT AND LICENSE

Copyright 2008-2014 Infinity Interactive, Inc.

\<http://www.iinteractive.com\>

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
