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

register_env method should accept a block #8

Open
subelsky opened this issue May 5, 2017 · 0 comments
Open

register_env method should accept a block #8

subelsky opened this issue May 5, 2017 · 0 comments

Comments

@subelsky
Copy link
Owner

subelsky commented May 5, 2017

Dim::Container#register_env is missing a feature that #register has, the ability to provide a block for default values.

Right now you can do this:

container.register(:aws_access_key_id) do
  # some code that returns what the value of container.aws_access_key_id should be
end

but not this:

container.register_env(:aws_access_key_id) do
  # some code that returns what the value of container.xyz should be
end

This issue would get both methods in parity

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