The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

EO::Method - a class that represents methods

SYNOPSIS

  use EO::Method;

  $method = EO::Method->new();

  $method->name( 'foo' );
  my $name = $method->name;

  $method->reference( sub {} );
  my $ref = $method->reference;

  my $results = $method->call( @args );

  $method->new_with_reference( 'foo' => sub {} );

DESCRIPTION

EO::Method provides a representation of methods in a system. In general objects of this class will be created by instances of EO::Class.

INHERITANCE

EO::Method inherits from the EO class.

CONSTRUCTOR

new_with_reference( NAME => CODEREF )

Returns an EO::Method object that has the name NAME and the reference CODEREF

METHODS

name( [STRING] )

Gets and sets the methods name

reference( [CODEREF] )

Gets and sets the code that the method uses

call( LIST )

Calls the references with the arguments specified by LIST.

SEE ALSO

EO::Class

AUTHOR

James A. Duncan <jduncan@fotango.com>

COPYRIGHT

Copyright 2003 Fotango Ltd. All Rights Reserved.

1 POD Error

The following errors were encountered while parsing the POD:

Around line 96:

You forgot a '=back' before '=head1'