Changeset 2423 for lang/perl/Class-Hookable
- Timestamp:
- 12/04/07 18:02:30 (13 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/Class-Hookable/trunk/lib/Class/Hookable.pm
r2391 r2423 639 639 640 640 When calling without arguments, all registered hook name is returned. 641 and when specifying plugin obejct (or Class name) as an argument, 641 642 And when specifying plugin obejct (or Class name) as an argument, 642 643 the hook name with which a plugin is registered is returned. 643 644 … … 659 660 my @methods = $hook->registered_methods( 'ClassName' ); 660 661 661 This method returns a registered method name .662 This method returns a registered method names. 662 663 663 664 When calling without arguments, all registered method name is returned. … … 675 676 When nothing is registered, no this methods are returned. 676 677 678 =head2 delete_hook 679 680 $hook->delete_hook( 'hook.name' ); 681 $hook->delete_hook( 'hook.name' => ( $pluginA, 'ClassName' ) ); 682 683 This method deletes a registered hook. 684 685 Hook name is specified as the first argument, 686 and plugin object or class name is specified as an argument after that. 687 688 When specifying only a hook as an argument, 689 all plugin registered with the hook are deleted. 690 691 And when specifying a hook and plugin object (or class name) as arguments, 692 specified plugins are deleted from a specified hook. 693 677 694 =head2 delete_plugin 678 695 … … 680 697 $hook->delete_plugin( ClassName => qw( hook.A hook.B ) ); 681 698 682 This method delete a registered plugin. 699 This method deletes a registered plugin. 700 701 A plugin object or class name is specified as the first argument, 702 and some hook names is specified as an argument after that. 683 703 684 704 When specifying only a plugin object (or class name) as an argument, … … 687 707 And when specifying a plugin object (or class name) and hooks as arguments, 688 708 a plugin is deleted from specified hooks. 689 690 =head2 delete_hook691 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.702 709 703 710 =head1 ACCESSOR METOHDS
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)