Index: [Article Count Order] [Thread]

Date:  Tue, 12 Feb 2002 21:41:31 +1300
From:  Holden Glova <dsafari@xtra.co.nz>
Subject:  [webricken:8] Re: SOAPlets
To:  webricken@notwork.org
Message-Id:  <20020212083713.BDAZ12697.mta2-rme.xtra.co.nz@there>
In-Reply-To:  <20020212.025317.95907225.gotoken@notwork.org>
References:  <20020209203956.FJHR15929.mta1-rme.xtra.co.nz@there> <20020212.025317.95907225.gotoken@notwork.org>
X-Mail-Count: 00008

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tue, 12 Feb 2002 06:53, GOTO Kentaro wrote:
> Hi Holden,
>
> In message "[webricken:3] SOAPlets"
>     on Sun, 10 Feb 2002 09:44:05 +1300,
>
>     Holden Glova <dsafari@xtra.co.nz> writes:
> > Here is what WEBrick shows me.
> > [2002-02-10 00:34:00] ERROR NameError: undefined method `has_key?' for
> > []:Array
>
> This problem is solved one perhaps:
> http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/33038
> http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/33051
>
> -- Gotoken

No - these didn't solve the problem. My error listed above is a different 
beast I think. I have it working by doing the following but I'm sure there is 
a much, much better way of doing this.

def get_instance( config, *options )
    #@config = config
    #@options = options
    #if @options && @options.has_key?( 'mappingRegistry' )
    #  @router.mappingRegistry = @options[ 'mappingRegistry' ]
    #end
    self
end

- -- 
Signed,
Holden Glova
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE8aNU7+mF116Lw2cQRAsKUAJ9XgVRSYelobqglQRMxuJMKHPbLDACfe4Wz
RNNS57q4d3mmOVqmmAjLbOk=
=cc6L
-----END PGP SIGNATURE-----