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

[sub-config] An ability to export a set of sub-settings as a new Qonfig::DataSet instance #106

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

0exp
Copy link
Owner

@0exp 0exp commented Mar 7, 2020

Closes #104


Concept:

class Config < Qonfig::DataSet
  setting :database do
    setting :host
    setting :port
  end
end

config = Config.new
sub_config = config.sub_config(:database) # => <Qonfig::DataSet:0x00007ff8>

sub_config.to_h
# =>
{ host: nil, port: nil }

@0exp 0exp added this to the 0.25.0 milestone Mar 7, 2020
@0exp 0exp self-assigned this Mar 7, 2020
@0exp 0exp force-pushed the feature/sub-settings-as-qonfig-instance branch from 0dcd99f to 2e2887c Compare March 11, 2020 20:10
@0exp 0exp modified the milestones: 0.25.0, 0.26.0 Sep 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[sub-config] An ability to export a set of sub-settings as Qonfig::DataSet instance
1 participant