Changeset 2980 for lang/perl/Class-Hookable
- Timestamp:
- 12/10/07 16:03:42 (13 months ago)
- Location:
- lang/perl/Class-Hookable/trunk
- Files:
-
- 1 added
- 1 modified
-
lib/Class/Hookable.pm (modified) (2 diffs)
-
t/03_utility/12_delete_method.t (added)
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/Class-Hookable/trunk/lib/Class/Hookable.pm
r2977 r2980 266 266 } 267 267 268 sub delete_method { 269 my ( $self, $method ) = @_; 270 271 Carp::croak "Method name is not specified." 272 if ( ! defined $method ); 273 274 delete $self->hookable_all_methods->{$method}; 275 } 276 268 277 sub delete_plugin { 269 278 my ( $self, $object, @hooks ) = @_; … … 728 737 specified callbacks are deleted from specified hooks. 729 738 739 =head2 delete_method 740 741 $hook->delete_method('method.name'); 742 743 This method deleted a registered hookable method. 744 The method name is specified as an argument. 745 730 746 =head2 delete_plugin 731 747
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)