--- Tony Bowden <tony-maypole at kasei.com> wrote:
> On Mon, Dec 27, 2004 at 01:20:20PM -0800, Peter Speltz wrote:
> > That may be good to know sometime. Thanks. I looked in CDBI docs and
> Universal
> > Moniker docs and couldn't find any specifics of what does. Is there a
> reason
> > why that method is undocumented (or is it documented)?
>
> Which method?
>
> moniker() is certainly documented in UNIVERSAL::moniker.
>
Yes, moniker(). For arguments sake, (i'm not complaining) :), that's not what i
call *documented*. From that doc, i'd expect a moniker for a class called
User_Privelage to be "user privelage" just like a human would *speak* it or
*write it in prose*. Same for a class called "UserPrivelage". In fact i was
very surprised when that didn't happen and i looked for a bug i had made!
Here's an informal doc patch:
. . .
=head2 moniker
$ob->moniker;
This simply returns , in all lower case, the part of the class name after the
last double colon. So, if $ob->isa("Big::Scary::Animal"), C<moniker> will
return "animal". And if $ob->isa("Big::Scary::SaberToothed_Tiger"), C<moniker>
will return "sabertoothed_tiger".
=head2 plural_moniker
$ob->plural_moniker;
This returns the plural of the above described moniker.
So if $ob->isa("Cephalopod::Octopus"), C<plural_moniker> will return
"octopuses".
(You need to install Lingua::EN::Inflect for this to work.)
=cut
Maybe that will save some folks having to open up the module. (What module
authors don't want right?)
> Exactly *how* it does what it does isn't documented, and I'm not
> convinced that it should be.
>
I agree. I just thought the doc was lacking a little what.
=====
pjs
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
maypole mailing list
maypole at lists.netthink.co.uk
http://lists.netthink.co.uk/listinfo/maypole
This archive was generated by hypermail 2.1.3 : Thu Feb 24 2005 - 22:25:57 GMT