logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Role::Commons::Authority - an object method providing a unique identifier

Author

       Toby Inkster <tobyink@cpan.org>.

Bugs

       Please report any bugs to <http://rt.cpan.org/Dist/Display.html?Queue=Role-Commons>.

Description

       This is a tiny shim between Object::ID and Role::Commons (and hence Moo::Role/Moose::Role too).

Disclaimer Of Warranties

       THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT
       LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.

perl v5.38.2                                       2024-03-07                       Role::Commons::ObjectID(3pm)

Name

       Role::Commons::Authority - an object method providing a unique identifier

See Also

       Role::Commons, Object::ID.

Synopsis

          use v5.14;

          package Person 1.0 {
             use Moo;
             use Role::Commons -all;
             has name => (is => 'ro');
          };

          my $bob1 = Person->new(name => "Bob");
          my $bob2 = Person->new(name => "Bob");

          say $bob1->object_id;  # an identifier
          say $bob2->object_id;  # a different identifier

See Also