NAME
PickLE::Category - Representation of a category in a pick list
ATTRIBUTES
- name
 - 
Name of the category.
 - components
 - 
List of components to be picked from this category.
 
METHODS
- $category = 
PickLE::Category->new([name, components]) - 
Initializes a pick list category object with a name and some components.
 - $category = 
PickLE::Category->from_line($line) - $category = $category->
from_line($line) - 
This method can be called statically, in which it will initialize a brand new category object or in object context in which it'll override just the attributes of the object and leave the instance intact.
In both variants it'll parse a category $line from a document and populate the object. Will return
undefif we couldn't parse a category from the given line. - $category->
add_component(@component) - 
Adds any number of components in the form of PickLE::Component objects to the category.
 - $category->
foreach_component($coderef) - 
Executes a block of code ($coderef) for each component available in this category. The component object will be passed as the first argument.
 - $str = $category->
as_string() - 
Gets the string representation of this object. Won't include any of the associated components and will return an empty string if a name isn't defined.
 
AUTHOR
Nathan Campos <nathan@innoveworkshop.com>
COPYRIGHT
Copyright (c) 2022- Nathan Campos.