Salvation::MacroProcessor::Connector - An object representing interconnection between two classes
Salvation::MacroProcessor::Connector -> new(
name => $name,
code => $code,
associated_meta => $associated_meta,
previously_associated_meta => $previously_associated_meta,
required_shares => $required_shares
name, code and associated_meta are required arguments.
Returns Salvation::MacroProcessor::Connector instance.
All arguments documented at this section below, or at smp_add_connector function documentation of Salvation::MacroProcessor module.
$object -> name();
Returns string which is the name of this connector.
$object -> code();
Returns CodeRef which is the actual connecting code.
$object -> associated_meta();
Returns Moose::Meta::Class or Moose::Meta::Role object instance corresponding to the object which has defined the connector.
$object -> previously_associated_meta();
Returns Moose::Meta::Class or Moose::Meta::Role object instance corresponding to the object which has defined the connector. It is used when child class inherits a connector from its parent and holds the reference to parent's class metaclass.
$description -> inherited_connector();
Returns Salvation::MacroProcessor::Connector object instance as it has been defined by a parent class if the connector has been inherited.
$object -> clone();
Clones connector, returning new-made clone.
$object -> required_shares();
Returns an ArrayRef. Each element is the name of required share.
To install Salvation::MacroProcessor, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell
For more information on module installation, please visit the detailed CPAN module installation guide.