Finance-FITF
view release on metacpan or search on metacpan
inc/Class/MOP/Class.pm view on Meta::CPAN
11521153115411551156115711581159116011611162116311641165116611671168116911701171
|| confess
"You must define a method name to find"
;
my
@cpl
=
$self
->linearized_isa;
shift
@cpl
;
# discard ourselves
foreach
my
$class
(
@cpl
) {
my
$method
= Class::MOP::Class->initialize(
$class
)->get_method(
$method_name
);
return
$method
if
defined
$method
;
}
return
;
}
sub
update_meta_instance_dependencies {
my
$self
=
shift
;
if
(
$self
->{meta_instance_dependencies} ) {
return
$self
->add_meta_instance_dependencies;
}
}
sub
add_meta_instance_dependencies {
my
$self
=
shift
;
inc/Class/MOP/Mixin/HasMethods.pm view on Meta::CPAN
174175176177178179180181182183184185186187188189190191192193
my
$self
=
shift
;
my
(
$old_meta
) =
@_
;
for
my
$method
(
$old_meta
->_get_local_methods) {
$method
->_make_compatible_with(
$self
->method_metaclass);
$self
->add_method(
$method
->
name
=>
$method
);
}
}
sub
reset_package_cache_flag { (
shift
)->{
'_package_cache_flag'
} =
undef
}
sub
update_package_cache_flag {
my
$self
=
shift
;
# NOTE:
# we can manually update the cache number
# since we are actually adding the method
# to our cache as well. This avoids us
# having to regenerate the method_map.
# - SL
$self
->{
'_package_cache_flag'
} = Class::MOP::check_package_cache_flag(
$self
->name);
}
( run in 0.404 second using v1.01-cache-2.11-cpan-a9ef4e587e4 )