Skip to content

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

2 participants