Sha256: 63db247644b6db86040570f881d4e1e204b60fea137fd8bf3f32c14c9ef39c9d

Contents?: true

Size: 464 Bytes

Versions: 9

Compression:

Stored size: 464 Bytes

Contents

# frozen_string_literal: true

module Qonfig
  class 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
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
qonfig-0.10.0 lib/qonfig/settings/builder.rb
qonfig-0.9.0 lib/qonfig/settings/builder.rb
qonfig-0.8.0 lib/qonfig/settings/builder.rb
qonfig-0.7.0 lib/qonfig/settings/builder.rb
qonfig-0.6.0 lib/qonfig/settings/builder.rb
qonfig-0.5.0 lib/qonfig/settings/builder.rb
qonfig-0.4.0 lib/qonfig/settings/builder.rb
qonfig-0.3.0 lib/qonfig/settings/builder.rb
qonfig-0.2.0 lib/qonfig/settings/builder.rb