Show
Ignore:
Timestamp:
12/10/07 16:03:42 (5 years ago)
Author:
nyarla
Message:

lang/perl/Class-Hookable: I implemented delete_method method.

Location:
lang/perl/Class-Hookable/trunk
Files:
1 added
1 modified

Legend:

Unmodified
Added
Removed
  • lang/perl/Class-Hookable/trunk/lib/Class/Hookable.pm

    r2977 r2980  
    266266} 
    267267 
     268sub 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 
    268277sub delete_plugin { 
    269278    my ( $self, $object, @hooks ) = @_; 
     
    728737specified callbacks are deleted from specified hooks. 
    729738 
     739=head2 delete_method 
     740 
     741  $hook->delete_method('method.name'); 
     742 
     743This method deleted a registered hookable method. 
     744The method name is specified as an argument. 
     745 
    730746=head2 delete_plugin 
    731747