Class-Maker
view release on metacpan or search on metacpan
lib/Class/Maker.pm view on Meta::CPAN
sub install
{
${ Class::Maker::Reflection::_get_definition( $pkg ) } = $_[0];
}
sub reflect
{
my $class = ref( $_[0] ) || $_[0] || die;
my $rfx = bless { name => $class }, 'Class::Maker::Reflex';
# - First get the "${$DEFINITION}" href containing the class definition
# - find the functions of that class declerated with ': method'
# - catch up the parent class reflection if DEEP is activated
# - update "${$DEFINITION}"->{isa} with its real @ISA
$rfx->{def} = ${ Class::Maker::Reflection::_get_definition( $class ) };
$rfx->{methods} = find_methods( $rfx->{name} );
( run in 0.332 second using v1.01-cache-2.11-cpan-a9ef4e587e4 )