Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accessing configuration values by variable ? #7

Open
NuggyBuggy opened this issue Sep 11, 2013 · 0 comments
Open

Accessing configuration values by variable ? #7

NuggyBuggy opened this issue Sep 11, 2013 · 0 comments

Comments

@NuggyBuggy
Copy link

For some reason I am having trouble wording this.

If you have a configuration
Configuration.for('app') {
key 'value'
foo 'bar'
}

and then
c = Configuration.for 'app'

I know we can access c.key, c.foo.

But is there a way to access a configuration key/value pair when the key is not known explicitly, but by variable ?

e.g. if foo=bar, is there a way to get the key/value pair corresponding to the value of foo ?

thanks !
terry

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant