James A. Duncan > EO-0.96 > EO::Method

Download:
EO-0.96.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
Report a bug
Module Version: 0.96   Source  

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.