diff options
author | gregor herrmann <gregoa@debian.org> | 2020-01-24 17:08:05 +0100 |
---|---|---|
committer | gregor herrmann <gregoa@debian.org> | 2020-01-24 17:08:05 +0100 |
commit | a0ffee3b830a0e147851f4462e599fe8eb7a63ff (patch) | |
tree | 92737813f0ba35896b8aa11b25e650775515a7c6 /lib/Tangence/Registry.pm | |
parent | 02ad7d8bff8429e056d0f65ac06779d3d57e42c0 (diff) |
New upstream version 0.25
Diffstat (limited to 'lib/Tangence/Registry.pm')
-rw-r--r-- | lib/Tangence/Registry.pm | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/lib/Tangence/Registry.pm b/lib/Tangence/Registry.pm index 4d0df92..e98e388 100644 --- a/lib/Tangence/Registry.pm +++ b/lib/Tangence/Registry.pm @@ -1,7 +1,7 @@ # You may distribute under the terms of either the GNU General Public License # or the Artistic License (the same terms as Perl itself) # -# (C) Paul Evans, 2010-2014 -- leonerd@leonerd.org.uk +# (C) Paul Evans, 2010-2017 -- leonerd@leonerd.org.uk package Tangence::Registry; @@ -9,7 +9,7 @@ use strict; use warnings; use base qw( Tangence::Object ); -our $VERSION = '0.24'; +our $VERSION = '0.25'; use Carp; @@ -67,7 +67,9 @@ objects it creates, so it can dispatch incoming messages from clients to them. =cut -=head2 $registry = Tangence::Registry->new +=head2 new + + $registry = Tangence::Registry->new Returns a new instance of a C<Tangence::Registry> object. An entire server requires one registry object; it will be shared among all the client @@ -108,7 +110,9 @@ sub new =cut -=head2 $obj = $registry->get_by_id( $id ) +=head2 get_by_id + + $obj = $registry->get_by_id( $id ) Returns the object with the given object ID. @@ -131,7 +135,9 @@ sub method_get_by_id return $self->get_by_id( $id ); } -=head2 $obj = $registry->construct( $type, @args ) +=head2 construct + + $obj = $registry->construct( $type, @args ) Constructs a new exposed object of the given type, and returns it. Any additional arguments are passed to the object's constructor. @@ -181,7 +187,9 @@ sub destroy_object push @{ $self->{freeids} }, $id; # Recycle the ID } -=head2 $registry->load_tanfile( $tanfile ) +=head2 load_tanfile + + $registry->load_tanfile( $tanfile ) Loads additional Tangence class and struct definitions from the given F<.tan> file. |