in reply to Re: Re: Feedback on Class::Container
in thread Feedback on Class::Container
use Class::MethodMaker new_hash_init => 'new', object => [ HTML::Mason::Lexer => 'lexer' ];
You can then choose to proxy selected methods from the contained class. For example, to create a class called CGI::Simple that contains a CGI.pm object in a slot called 'query' and proxies new() and param() to it:
package CGI::Simple; use Class::MethodMaker new_hash_init => 'new', object => [ CGI => { slot => 'query', comp_mthds => [ 'new', 'param' ], } ];
This seems just nextdoor to your module to me.
-sam
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Feedback on Class::Container
by kwilliams (Sexton) on Jul 01, 2002 at 02:29 UTC | |
by samtregar (Abbot) on Jul 01, 2002 at 05:30 UTC |