my $set = Fey::NamedObjectSet->new( $name_col, $size_col );
This class represents a set of named objects, such as tables or columns. You can look up objects in the set by name, or simply retrieve all of the objects at once.
It exists to simplify Fey's internals, since named sets of objects are quite common in SQL.
This class provides the following methods:
This method returns a new Fey::NamedObjectSet object. Any objects passed to this method are added to the set as it is created. Each object passed must implement a name() method, which is expected to return a unique name for that object.
Fey::NamedObjectSet
name()
Adds one or more named objects to the set.
This method accepts one or more objects and removes them from the set, if they are part of it.
Given a name, this method returns the corresponding object.
When given a list of names as an argument, this method returns the named objects in the order specified, if they exist in the set. If not given any arguments it returns all of the objects in the set.
Given a Fey::NamedObjectSet, this method indicates whether or not the two sets are the same.
See Fey for details on how to report bugs.
To install Fey, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Fey
CPAN shell
perl -MCPAN -e shell install Fey
For more information on module installation, please visit the detailed CPAN module installation guide.