Show
Ignore:
Timestamp:
12/04/07 18:02:30 (13 months ago)
Author:
nyarla
Message:

lang/perl/Class-Hookable: I modified POD.

Files:
1 modified

Legend:

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

    r2391 r2423  
    639639 
    640640When calling without arguments, all registered hook name is returned. 
    641 and when specifying plugin obejct (or Class name) as an argument, 
     641 
     642And when specifying plugin obejct (or Class name) as an argument, 
    642643the hook name with which a plugin is registered is returned. 
    643644 
     
    659660  my @methods = $hook->registered_methods( 'ClassName' ); 
    660661 
    661 This method returns a registered method name. 
     662This method returns a registered method names. 
    662663 
    663664When calling without arguments, all registered method name is returned. 
     
    675676When nothing is registered, no this methods are returned. 
    676677 
     678=head2 delete_hook 
     679 
     680  $hook->delete_hook( 'hook.name' ); 
     681  $hook->delete_hook( 'hook.name' => ( $pluginA, 'ClassName' ) ); 
     682 
     683This method deletes a registered hook. 
     684 
     685Hook name is specified as the first argument, 
     686and plugin object or class name is specified as an argument after that. 
     687 
     688When specifying only a hook as an argument, 
     689all plugin registered with the hook are deleted. 
     690 
     691And when specifying a hook and plugin object (or class name) as arguments, 
     692specified plugins are deleted from a specified hook. 
     693 
    677694=head2 delete_plugin 
    678695 
     
    680697  $hook->delete_plugin( ClassName => qw( hook.A hook.B ) ); 
    681698 
    682 This method delete a registered plugin. 
     699This method deletes a registered plugin. 
     700 
     701A plugin object or class name is specified as the first argument, 
     702and some hook names is specified as an argument after that. 
    683703 
    684704When specifying only a plugin object (or class name) as an argument, 
     
    687707And when specifying a plugin object (or class name) and hooks as arguments, 
    688708a plugin is deleted from specified hooks. 
    689  
    690 =head2 delete_hook 
    691  
    692   $hook->delete_hook( 'hook.name' ); 
    693   $hook->delete_hook( 'hook.name' => ( $pluginA, 'ClassName' ) ); 
    694  
    695 This method delete a registered hook. 
    696  
    697 When specifying only a hook as an argument, 
    698 all plugin registered with the hook are deleted. 
    699  
    700 And when specifying a hook and plugin object (or class name) as arguments, 
    701 specified plugins are deleted from a specified hook. 
    702709 
    703710=head1 ACCESSOR METOHDS