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

Setup method takes options in a block DSL. #20

Merged
merged 4 commits into from
Jun 19, 2019
Merged

Setup method takes options in a block DSL. #20

merged 4 commits into from
Jun 19, 2019

Conversation

acook
Copy link
Owner

@acook acook commented Oct 4, 2015

It works pretty much exactly like #11 demonstrated:

module ExampleConfig
  extend ConfigModule.setup do
    path 'config/example.yml'
    namespace config_module.env
    method_name :settings
  end
end

The implementation needs some refactoring and the old usage needs to be deprecated before the next version.

spec/config_setup_spec.rb Outdated Show resolved Hide resolved
@acook acook merged commit 8f4b7e7 into 2.0_devel Jun 19, 2019
@acook acook deleted the setup branch June 19, 2019 09:05
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

Successfully merging this pull request may close these issues.

1 participant