thanks, david

quick thinking! and that should work, although i don't like using
method_missing if i can help it. but unless i can find a better way i'll
do it.

thanks again,
~transami


On Mon, 2002-08-26 at 21:05, David Naseby wrote:
> > From: Tom Sawyer [mailto:transami / transami.net]
> Warning: completely spontaneous and untested.
> 
> > class Text
> >     
> >   def new(component)
> >     if component <= 1
> 	  @component = TextSingle.new
> >     else
> 	  @component = TextMultiple.new
> >     end
> >   end
> 
>     def method_missing(methID, *args)
> 	if @component.responds_to? methID
> 		@component.send methID, args
> 	else
> 		super
> 	end
>     end
> ...
> 
-- 
~transami