Paul Evans > Tangence > Tangence::Meta::Struct

Download:
Tangence-0.20.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
View/Report Bugs
Module Version: 0.20   Source  

NAME ^

Tangence::Meta::Struct - structure representing one Tangence structure type

DESCRIPTION ^

This data structure stores information about one Tangence structure type. Once constructed and defined, such objects are immutable.

CONSTRUCTOR ^

$struct = Tangence::Meta::Struct->new( name => $name )

Returns a new instance representing the given name.

$struct->define( %args )

Provides a definition for the structure.

fields => ARRAY

ARRAY reference containing metadata about the structure's fields, as instances of Tangence::Meta::Field.

ACCESSORS ^

$defined = $struct->defined

Returns true if a definition of the structure has been provided using define.

$name = $struct->name

Returns the name of the structure

@fields = $struct->fields

Returns a list of the fields defined on the structure, in their order of definition.

AUTHOR ^

Paul Evans <leonerd@leonerd.org.uk>

syntax highlighting: