Closed DSIW closed 12 years ago
I see my mistake in app_config/storage/yaml_spec.rb
. I have to write it like this:
AppConfig[:first] = 1
AppConfig[:name] = "NAME"
I see also, that the return value of setup()
is an Hash
, then I can't access by symbols. But I think many people will use it like my first example.
Could you change to return value of setup
? People who want to use a Hash
can use your to_hash
method.
Please give me feedback. Thank's.
This has been fixed in 1.0.2. AppConfig.setup
now returns an instance of Hashish.
Thank's for your quick reply.
Input:
Ouput:
I'd like to access values by symbols and strings. You implemented this in your class
Hashish
, right? I tested it and it was correct, but if I use your classAppConfig
I don't have access by symbols.What is my problem? Thank's for help.