GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Commandable::Finder::MethodAttributes(3) User Contributed Perl Documentation Commandable::Finder::MethodAttributes(3)

"Commandable::Finder::MethodAttributes" - find commands stored as methods with attributes

   use Commandable::Finder::MethodAttributes;
   my $object = SomeClass->new( ... );
   my $finder = Commandable::Finder::MethodAttributes->new(
      object => $object,
   );
   my $help_command = $finder->find_command( "help" );
   foreach my $command ( $finder->find_commands ) {
      ...
   }

This subclass of Commandable::Finder::SubAttributes looks for methods that define commands, where each command is provided by an individual method in a given class. It stores the object instance and arranges that each discovered command method will capture it, passing it as the first argument when invoked.

The attributes on each method are those given by "Commandable::Finder::SubAttributes" and are used in the same way here.

   $finder = Commandable::Finder::MethodAttributes->new( %args )

Constructs a new instance of "Commandable::Finder::MethodAttributes".

Takes the following named arguments:

An object reference. Its class will be used for searching for command methods. The instance itself is stored by the finder object and used to wrap each command method.

Any additional arguments are passed to the superclass constructor.

Paul Evans <leonerd@leonerd.org.uk>

2025-07-03 perl v5.40.2

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.