Module: Qonfig::Settings::Builder Private
- Defined in:
- lib/qonfig/settings/builder.rb
Overview
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Class Method Summary collapse
Class Method Details
.build_definitions(data_set) ⇒ Qonfig::Settings
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
12 13 14 15 16 17 18 |
# File 'lib/qonfig/settings/builder.rb', line 12 def build_definitions(data_set) Qonfig::Settings.new(build_mutation_callbacks(data_set)).tap do |settings| data_set.class.definition_commands.dup.each do |command| command.call(data_set, settings) end end end |
.build_state(data_set) ⇒ void
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
This method returns an undefined value.
25 26 27 28 29 |
# File 'lib/qonfig/settings/builder.rb', line 25 def build_state(data_set) data_set.class.instance_commands.dup.each do |command| command.call(data_set, data_set.settings) end end |