Matt S Trout > Rakudo-Star-2012.08_001 > Parrot::Configure::Data

Download:
Rakudo-Star-2012.08_001.tar.gz

Dependencies

Annotate this POD

Source  

NAME ^

Parrot::Configure::Data - Configuration data container

SYNOPSIS ^

    use Parrot::Configure::Data;

    my $data = Parrot::Configure::Data->new;
    my @values = $data->get(@keys);
    $data->set($key1 => $value1, $key2 => $value2);
    $data->add($delimiter, $key1 => $value1, $key2 => $value2);
    my @keys = $data->keys;
    my $serialized = $data->dump(q{c}, q{*PConfig});
    $data->clean;
    $data->settrigger($key, $trigger, $cb);
    $data->gettriggers($key);
    $data->gettrigger($key, $trigger);
    $data->deltrigger($key, $trigger);

DESCRIPTION ^

This module provides methods by which other Parrot::Configure::* modules can access configuration data.

The module supplies a constructor for Parrot::Configure::Data objects and three kinds of accessors:

1 Main configuration data
2 Triggers
3 Data read from Perl 5's %Config or Perl 5 special variables.

USAGE ^

Constructor

Methods for Main Configuration Data

Triggers

Methods for Perl 5 Data

CREDITS ^

Based largely on code written by Brent Royal-Gordon brent@brentdax.com.

AUTHOR ^

Joshua Hoblitt jhoblitt@cpan.org

SEE ALSO ^

docs/configuration.pod, Parrot::Configure, Parrot::Configure::Step, Parrot::Configure::Step

syntax highlighting: