Skip Menu |

This queue is for tickets about the CPAN-DistnameInfo CPAN distribution.

Report information
The Basics
Id: 6927
Status: resolved
Priority: 0/
Queue: CPAN-DistnameInfo

People
Owner: Nobody in particular
Requestors: rrwo [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 0.03
Fixed in: (no value)



Subject: WISHLIST: additional methods
The following methods would be nice to have: pathname() - retrieves the pathname used to create the object. It's redundant to create the object, and then have to pass the object plus the pathname used to create it to a subroutine because the info is not accessible. meta_pathname() - pathname for meta file (does not mean it exists, just the path where one would expect to find it) readme_pathname() - pathname for readme (does not mean it exists, just the path where one would expect to find it)
From: Graham Barr <gbarr [...] pobox.com>
Subject: Re: [cpan #6927] WISHLIST: additional methods
Date: Mon, 12 Jul 2004 09:08:43 +0100
To: bug-CPAN-DistnameInfo [...] rt.cpan.org
RT-Send-Cc:
On 11 Jul 2004, at 21:08, Guest via RT wrote: Show quoted text
> This message about CPAN-DistnameInfo was sent to you by guest <> via > rt.cpan.org > > Full context and any attached attachments can be found at: > <URL: https://rt.cpan.org/Ticket/Display.html?id=6927 > > > The following methods would be nice to have: > > pathname() - retrieves the pathname used to create the object. It's > redundant to create the object, and then have to pass the object > plus the pathname used to create it to a subroutine because the > info is not accessible.
I agree this may be useful. Show quoted text
> meta_pathname() - pathname for meta file (does not mean it exists, > just the path where one would expect to find it) > > readme_pathname() - pathname for readme (does not mean it exists, > just the path where one would expect to find it)
I don't think these are. I means making assumptions and not everyone will have the same assumptions. If you want to store such data in the object, then subclass it and you can add anything you like. Graham.