NAME

My::Symdump - Rummage around in name spaces.

SYNOPSIS

use lib qw{ tools };
use My::Symdump;

say for My::Symdump->find_public_methods( 'Date::Manip::Date' );

DESCRIPTION

This module is private to the Date-ManipX-Almanac package. It is unsupported, and can be changed or revoked at any time without notice.

This module contains whatever symbol table ad-hocery is needed to maintain the Date::ManipX::Almanac package.

METHODS

This class supports the following methods:

dmd_public_interface

This is just a wrapper for

My::Symdump->find_public_methods( 'Date::Manip::Date' )

which tweaks the results to conform to the documented interface. As of this writing (and Date::Manip::Date 6.85) the tweaks are:

  • remove 'dclone'

find_public_methods

say My::Symdump->find_public_methods( 'Date::Manip::Date' );
my $hash = My::Symdump->find_public_methods( 'Date::Manip::Date' );

This static method takes a module name as its argument. That module is loaded, and it and its parents (if any) are scanned for public methods. These are defined as methods whose name contains at least one lower-case character and does not begin with an underscore ('_').

If called in list context, the names are returned, sorted in lexical order.

If called in scalar context, the return is a reference to a hash of the names of public methods, with the associated value being the name space that defines the method.

SEE ALSO

Devel::Symdump, which does the heavy lifting.

SUPPORT

This module is unsupported, and can be modified or revoked at any time.

AUTHOR

Thomas R. Wyant, III wyant at cpan dot org

COPYRIGHT AND LICENSE

Copyright (C) 2021 by Thomas R. Wyant, III

This program is free software; you can redistribute it and/or modify it under the same terms as Perl 5.10.0. For more details, see the full text of the licenses in the directory LICENSES.

This program is distributed in the hope that it will be useful, but without any warranty; without even the implied warranty of merchantability or fitness for a particular purpose.