|
NAMESQL::Translator::Role::ListAttr - context-sensitive list attributesSYNOPSISpackage Foo; use Moo; use SQL::Translator::Role::ListAttr; with ListAttr foo => ( uniq => 1, append => 1 ); DESCRIPTIONThis package provides a variable Moo::Role for context-sensitive list attributes.FUNCTIONSListAttr $name => %parameters;Returns a Moo::Role providing an arrayref attribute named $name, and wrapping the accessor to provide context-sensitivity both for setting and getting. If no "builder" or "default" is provided, the default value is the empty list.On setting, the arguments are parsed using "parse_list_arg" in SQL::Translator::Utils, and the accessor will return an array reference or a list, depending on context. Parameters
Unknown parameters are passed through to the has call for the attribute. SEE ALSO
Visit the GSP FreeBSD Man Page Interface. |