From: "s.ross" Date: 2009-03-30T03:52:00+09:00 Subject: [OT] Shoes, Gems, Oh, My! I'll ask this question that I asked on stackoverflow (to a resounding silence). I'm sure someone here knows the answer. I'm not completely grokking how Shoes handles gems and, more importantly, what the lifetime of objects should be in Shoes. Here was the question: http://stackoverflow.com/questions/691968/shoes-and-gems In a nutshell, I do this in my Shoes.setup (extracting to inline code for the purposes of simplicity) Shoes.setup do require 'xmlrpc/client' secure = true @server = XMLRPC::Client.new((secure) ? MWS_SECURE_URN : MWS_URN, MWS_ENDPOINT, nil, nil, nil, nil, nil, secure) result = @server.call('mywebservice.auth.login', :userName => 'me', :userPassword => 'password') end The results on the Shoes console are: undefined method `closed?' for # That leads me to believe that I don't understand how long @server hangs around, or something like that. Google has been little help in terms of how the gem system works or information about object scope, visibility and lifetime. Any help is appreciated. Thanks