lib/qonfig/settings/builder.rb in qonfig-0.10.0 vs lib/qonfig/settings/builder.rb in qonfig-0.11.0

- old
+ new

@@ -1,22 +1,18 @@ # frozen_string_literal: true -module Qonfig - class Settings +# @api private +# @since 0.2.0 +module Qonfig::Settings::Builder + class << self + # @param commands [Qonfig::CommandSet] + # @return [Qonfig::Settings] + # # @api private # @since 0.2.0 - module Builder - class << self - # @param [Qonfig::CommandSet] - # @return [Qonfig::Settings] - # - # @api private - # @since 0.2.0 - def build(commands) - Qonfig::Settings.new.tap do |settings| - commands.each { |command| command.call(settings) } - end - end + def build(commands) + Qonfig::Settings.new.tap do |settings| + commands.each { |command| command.call(settings) } end end end end