Hi Ceri,

Ceri Storey wrote:
> A cleaner solution might well be to use a proxy object, which makes use
> of the special method, method_missing to map keys to values.
> 
> class CgiParam 
>   def initialize(params)
>     @params = params
>   end
>   def method_missing(m, *other)
>     @params[m.to_s][0]
>   end
> end
> 
> p = CgiParam.new(cgi.params)
> 
> . if (p.foo) # do things
>  ... unless (p.bar.to_i) # other things

This sounds good. I will try this...
Thanks.

greetings
Dirk Einecke