Skip to content

Accessing configuration values by variable ? #7

@NuggyBuggy

Description

@NuggyBuggy

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions