From: Peter Szinek Date: 2007-11-06T21:45:16+09:00 Subject: Re: Passing all parameters to a method with a unique variable Hi, Mario Ruiz wrote: > I'm using global variables because I have a settings file with all the > global variables and the final user can change the values only in that > file. As far as I understand the situation (maybe I don't), this has nothing to do with the scope of the variables used. The notion of a 'settings file', as used in other languages like Java, is quite alien to Ruby. In Ruby, the configurations stuff is code, too (a typical example of this is config/environment.rb in Rails). > I don't have any practice in Ruby (2 weeks), is there a better way? Yeah for sure. We would need a more detailed description of the problem to come up with a solution, though. Cheers, ___ http://www.rubyrailways.com http://scrubyt.org