
EO::Method - a class that represents methods

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 {} );

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

EO::Method inherits from the EO class.

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

Gets and sets the methods name
Gets and sets the code that the method uses
Calls the references with the arguments specified by LIST.


James A. Duncan <jduncan@fotango.com>

Copyright 2003 Fotango Ltd. All Rights Reserved.