Am 11.11.2012 10:24, schrieb sto.mar / web.de:
> Am 11.11.2012 05:21, schrieb Carolyn Grant:
>> Hi! I'm quite new to Ruby, and am quite confused about instance names.

>> basic_config = MySettings.new # Picks up & processes basic_config.yml
>> adv_config = MySettings.new   # Picks up & processes adv_config.yml

>    config = MySettings.new('basic_config')

If you have lots of config objects you then could also use an array
or a hash that contains all of them:

config[:basic] = MySettings.new('basic_config')
config[:adv]   = MySettings.new('adv_config')


-- 
<https://github.com/stomar/>