Data::Object::Registry
Data-Object Namespace Registry
use Data::Object::Registry; my $registry = Data::Object::Registry->new;
This package is a singleton that holds mappings for namespaces and type libraries.
This package inherits behaviors from:
Data::Object::Base
This package uses type constraints defined by:
Data::Object::Library
This package implements the following methods.
get(Str $arg1) : Any
The get method returns the value of the element with the specific key.
my $get = $registry->get($key);
lut(Str $arg1) : ArrayRef
Returns the lookup table for a given namespace.
my $lut = $registry->lut($key);
new() : Object
Construct a new object.
my $registry = Data::Object::Registry->new;
obj(ClassName $arg1) : InstanceOf[Type::Registry]
Return the Type::Registry object for a given namespace.
my $obj = $registry->obj($key);
rem(Str $arg1, Str $arg2) : Str
Remove the registered type library from a given namespace.
my $rem = $registry->rem($key, $val);
set(Str $arg1, Any $arg2) : Any
Set the supplied key and value, and return the value.
my $set = $registry->set($key, $val);
tns() : HashRef
Returns the registered type-namespaces.
my $tns = $registry->tns();
Al Newkirk, +319
+319
Anthony Brummett, +10
+10
Adam Hopkins, +2
+2
José Joaquín Atria, +1
+1
Al Newkirk, awncorp@cpan.org
awncorp@cpan.org
Copyright (C) 2011-2019, Al Newkirk, et al.
This is free software; you can redistribute it and/or modify it under the terms of the The Apache License, Version 2.0, as elucidated here, https://github.com/iamalnewkirk/do/blob/master/LICENSE.
Wiki
Project
Initiatives
Milestones
Contributing
Issues
To get the most out of this distribution, consider reading the following:
Do
Data::Object
Data::Object::Class
Data::Object::ClassHas
Data::Object::Role
Data::Object::RoleHas
To install Do, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Do
CPAN shell
perl -MCPAN -e shell install Do
For more information on module installation, please visit the detailed CPAN module installation guide.