Data::Object::Config
Data-Object Package Configuration
use Data::Object::Config;
Data::Object::Config is used to configure the consuming package based on arguments passed to the import statement.
This package implements the following functions.
choose(Str $arg1) : ArrayRef
The choose function returns the configuration (plans) based on the argument passed.
choose('class');
config(ArrayRef $arg1) : ArrayRef
The config function returns plans for configuring a package with the standard Data::Object setup.
my $plans = config;
config_array() : ArrayRef
The config_array function returns plans for configuring the package to be a Data::Object::Class which extends Data::Object::Array.
my $plans = config_array;
config_class() : ArrayRef
The config_class function returns plans for configuring the package to be a Data::Object::Class.
my $plans = config_class;
config_cli() : ArrayRef
The config_cli function returns plans for configuring the package to be a Data::Object::Class which extends Data::Object::Cli.
my $plans = config_cli;
config_code() : ArrayRef
The config_code function returns plans for configuring the package to be a Data::Object::Class which extends Data::Object::Code.
my $plans = config_code;
config_dispatch() : ArrayRef
The config_dispatch function returns plans for configuring the package to be a Data::Object::Class which extends Data::Object::Dispatch.
my $plans = config_dispatch;
config_exception() : ArrayRef
The config_exception function returns plans for configuring the package to be a Data::Object::Class which extends Data::Object::Exception.
my $plans = config_exception;
config_float() : ArrayRef
The config_float function returns plans for configuring the package to be a Data::Object::Class which extends Data::Object::Float.
my $plans = config_float;
config_hash() : ArrayRef
The config_hash function returns plans for configuring the package to be a Data::Object::Class which extends Data::Object::Hash.
my $plans = config_hash;
config_integer() : ArrayRef
The config_integer function returns plans for configuring the package to be a Data::Object::Class which extends Data::Object::Integer.
my $plans = config_integer;
config_json() : ArrayRef
The config_json function returns plans for configuring the package to have a json function that loads a Data::Object::Json object.
json
my $plans = config_json;
config_kind() : ArrayRef
The config_kind function returns plans for configuring the package to be a Data::Object::Class which extends Data::Object::Kind.
my $plans = config_kind;
config_number() : ArrayRef
The config_number function returns plans for configuring the package to be a Data::Object::Class which extends Data::Object::Number.
my $plans = config_number;
config_path() : ArrayRef
The config_path function returns plans for configuring the package to have a path function that loads a Data::Object::Path object.
path
my $plans = config_path;
config_regexp() : ArrayRef
The config_regexp function returns plans for configuring the package to be a Data::Object::Class which extends Data::Object::Regexp.
my $plans = config_regexp;
config_replace() : ArrayRef
The config_replace function returns plans for configuring the package to be a Data::Object::Class which extends Data::Object::Replace.
my $plans = config_replace;
config_role() : ArrayRef
The config_role function returns plans for configuring the package to be a Data::Object::Role.
my $plans = config_role;
config_rule() : ArrayRef
The config_rule function returns plans for configuring a package to be a Data::Object::Rule.
my $plans = config_rule;
config_scalar() : ArrayRef
The config_scalar function returns plans for configuring the package to be a Data::Object::Class which extends Data::Object::Scalar.
my $plans = config_scalar;
config_search() : ArrayRef
The config_search function returns plans for configuring the package to be a Data::Object::Class which extends Data::Object::Search.
my $plans = config_search;
config_state() : ArrayRef
The config_state function returns plans for configuring the package to be a Data::Object::Class which extends Data::Object::State.
my $plans = config_state;
config_string() : ArrayRef
The config_string function returns plans for configuring the package to be a Data::Object::Class which extends Data::Object::String.
my $plans = config_string;
config_tmpl() : ArrayRef
The config_tmpl function returns plans for configuring the package to have a tmpl function that loads a Data::Object::Template object.
tmpl
my $plans = config_tmpl;
config_try() : ArrayRef
The config_try function returns plans for configuring the package to have try and catch constructs for trapping exceptions.
try
catch
my $plans = config_try;
config_type() : ArrayRef
The config_type function returns plans for configuring the package to be a Data::Object::Class which extends Data::Object::Type.
my $plans = config_type;
config_undef() : ArrayRef
The config_undef function returns plans for configuring the package to be a Data::Object::Class which extends Data::Object::Undef.
my $plans = config_undef;
config_yaml() : ArrayRef
The config_yaml function returns plans for configuring the package to have a yaml function that loads a Data::Object::Yaml object.
yaml
my $plans = config_yaml;
prepare(Str $arg1, Str $arg2) : ArrayRef
The prepare function returns configuration plans based on the arguments passed.
prepare($package, $type);
prepare_add(Str $arg1, Str $arg2) : ArrayRef
The prepare_add function returns an add-plan for the arguments passed.
prepare_add($package, $function);
prepare_call(Str $arg1, Any @args) : ArrayRef
The prepare_call function returns a call-plan for the arguments passed.
prepare_call($function, @args);
prepare_use(Str $arg1, Any @args) : ArrayRef
The prepare_use function returns a use-plan for the arguments passed.
prepare_use($package, @args);
process(Str $arg1, ArrayRef $arg2) : Any
The process function executes a series of plans on behalf of the caller.
process($caller, $plans);
process_add(Str $arg1, ArrayRef $arg2) : Any
The process_add function executes the add-plan on behalf of the caller.
process_add($caller, $plan);
process_call(Str $arg1, ArrayRef $arg2) : Any
The process_call function executes the call-plan on behalf of the caller.
process_call($caller, $plan);
process_use(Str $arg1, ArrayRef $arg2) : Any
The process_use function executes the use-plan on behalf of the caller.
process_use($caller, $plan);
subject(Str $arg1, Str $arg2) : Int
The subject function returns truthy if both arguments match alphanumerically (not case-sensitive).
subject('-Role', 'Role');
To install Data::Object, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Data::Object
CPAN shell
perl -MCPAN -e shell install Data::Object
For more information on module installation, please visit the detailed CPAN module installation guide.