UMMF::Core::Config - Configuration object.
my $config = UMMF::Core::Config->new('argv' => \@ARGV, 'env' => \%ENV, ); my $value = $config->config_value($modelElement, $name, $default);
This class is used by bin/ummf.pl to allow the user to specify overrides for configuration.
my $value = $config->config_*($model_element, $key, $default);
None exported.
Kurt Stephens, kstephens@users.sourceforge.net 2003/10/10
UMMF::Core::Configurable
$Revision: 1.6 $
my $value = $self->config_value($model_element, $key, $default);
Returns the configuration value for $key for a $model_element.
The result defaults to $default, if no match value is found.
my $value = $self->config_value_inherited($model_element, $key, $default);
Same as config_value but searches up the $model_element's namespace for a matching TaggedValue.
config_value
This allows control values to be defined in a Package that will be inherited from all ModelElements under the Package.
Returns true if the $self->config_value(...) is a 'true' value.
my $value = $self->config_value_inherited_true($model_element, $key, $default);
Returns true if the $self->config_value_inherited(...) is a 'true' value.
To install UMMF, copy and paste the appropriate command in to your terminal.
cpanm
cpanm UMMF
CPAN shell
perl -MCPAN -e shell install UMMF
For more information on module installation, please visit the detailed CPAN module installation guide.