[libclass-tiny-perl] 11/19: fix documentation around use of Class::Tiny::Object
gregor herrmann
gregoa at debian.org
Sun May 31 14:03:12 UTC 2015
This is an automated email from the git hooks/post-receive script.
gregoa pushed a commit to annotated tag release-0.004
in repository libclass-tiny-perl.
commit 4a2b64509eceaddda7413d7b649b009655f63d07
Author: David Golden <dagolden at cpan.org>
Date: Tue Aug 20 22:19:38 2013 -0400
fix documentation around use of Class::Tiny::Object
---
README.pod | 18 +++++++++---------
lib/Class/Tiny.pm | 18 +++++++++---------
2 files changed, 18 insertions(+), 18 deletions(-)
diff --git a/README.pod b/README.pod
index 97a6ac5..af2f92e 100644
--- a/README.pod
+++ b/README.pod
@@ -144,16 +144,16 @@ loading Class::Tiny:
By declaring C<id> also with Class::Tiny, you include it in the list
of allowed constructor parameters.
-=head2 Class::Tiny is your base class
+=head2 Class::Tiny::Object is your base class
-If your class B<does not> already inherit from some class, then Class::Tiny
-will be added to your C<@ISA> to provide C<new> and C<DESTROY>. (The
-superclass C<import> method will silently do nothing for subclasses.)
+If your class B<does not> already inherit from some class, then
+Class::Tiny::Object will be added to your C<@ISA> to provide C<new> and
+C<DESTROY>.
If your class B<does> inherit from something, then no additional inheritance is
-set up. If the parent subclasses Class::Tiny, then all is well. If not, then
-you'll get accessors set up but no constructor or destructor. Don't do that
-unless you really have a special need for it.
+set up. If the parent subclasses Class::Tiny::Object, then all is well. If
+not, then you'll get accessors set up but no constructor or destructor. Don't
+do that unless you really have a special need for it.
Define subclasses as normal. It's best to define them with L<base>, L<parent>
or L<superclass> before defining attributes with Class::Tiny so the C<@ISA>
@@ -167,8 +167,8 @@ array is already populated at compile-time:
=head2 Object construction
-If your class inherits from Class::Tiny (as it should if you followed the
-advice above), it provides the C<new> constructor for you.
+If your class inherits from Class::Tiny::Object (as it should if you followed
+the advice above), it provides the C<new> constructor for you.
Objects can be created with attributes given as a hash reference or as a list
of key/value pairs:
diff --git a/lib/Class/Tiny.pm b/lib/Class/Tiny.pm
index 4ac6f9f..831f9fc 100644
--- a/lib/Class/Tiny.pm
+++ b/lib/Class/Tiny.pm
@@ -226,16 +226,16 @@ loading Class::Tiny:
By declaring C<id> also with Class::Tiny, you include it in the list
of allowed constructor parameters.
-=head2 Class::Tiny is your base class
+=head2 Class::Tiny::Object is your base class
-If your class B<does not> already inherit from some class, then Class::Tiny
-will be added to your C<@ISA> to provide C<new> and C<DESTROY>. (The
-superclass C<import> method will silently do nothing for subclasses.)
+If your class B<does not> already inherit from some class, then
+Class::Tiny::Object will be added to your C<@ISA> to provide C<new> and
+C<DESTROY>.
If your class B<does> inherit from something, then no additional inheritance is
-set up. If the parent subclasses Class::Tiny, then all is well. If not, then
-you'll get accessors set up but no constructor or destructor. Don't do that
-unless you really have a special need for it.
+set up. If the parent subclasses Class::Tiny::Object, then all is well. If
+not, then you'll get accessors set up but no constructor or destructor. Don't
+do that unless you really have a special need for it.
Define subclasses as normal. It's best to define them with L<base>, L<parent>
or L<superclass> before defining attributes with Class::Tiny so the C<@ISA>
@@ -249,8 +249,8 @@ array is already populated at compile-time:
=head2 Object construction
-If your class inherits from Class::Tiny (as it should if you followed the
-advice above), it provides the C<new> constructor for you.
+If your class inherits from Class::Tiny::Object (as it should if you followed
+the advice above), it provides the C<new> constructor for you.
Objects can be created with attributes given as a hash reference or as a list
of key/value pairs:
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libclass-tiny-perl.git
More information about the Pkg-perl-cvs-commits
mailing list