[libmoox-late-perl] 02/07: Add more examples in the SYNOPSIS section.
Intrigeri
intrigeri at moszumanska.debian.org
Thu Aug 14 11:13:37 UTC 2014
This is an automated email from the git hooks/post-receive script.
intrigeri pushed a commit to tag 0.007
in repository libmoox-late-perl.
commit c5ddc97b15dca0ae1dc5714c2b81a05d68788b29
Author: Shlomi Fish <shlomif at shlomifish.org>
Date: Sun Dec 23 23:32:53 2012 +0200
Add more examples in the SYNOPSIS section.
Thanks to mst ( https://metacpan.org/author/MSTROUT ) for guiding me through
using this module, and asking me to add the documentation for making it more
"shlomif-proof", and so more idiot-proof in general (for some bar of idiots).
---
lib/MooX/late.pm | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/lib/MooX/late.pm b/lib/MooX/late.pm
index 536a106..f2ca2cf 100644
--- a/lib/MooX/late.pm
+++ b/lib/MooX/late.pm
@@ -394,6 +394,17 @@ or, without L<MooX>:
use MooX::late;
has bar => (is => 'ro', isa => 'Str');
+or, for MooX::Role:
+
+ package MyRole;
+ use MooX::Role qw(late);
+
+or, inside L<Package::Variant>:
+
+ use Package::Variant
+ importing => ['MooX::Role' => ['late'],],
+ subs => [ qw(has with) ];
+
=head1 DESCRIPTION
L<Moo> is a light-weight object oriented programming framework which aims
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libmoox-late-perl.git
More information about the Pkg-perl-cvs-commits
mailing list