Sha256: 5188fd0e16772230b86704aa35816e6ed55df174bde2bdeb8b192c7fbc1b44fe
Contents?: true
Size: 755 Bytes
Versions: 1
Compression:
Stored size: 755 Bytes
Contents
# frozen_string_literal: true module Qonfig module Commands # @api private # @since 0.1.0 class AddOption < Base # @return [String,Symbol] # # @api private # @since 0.1.0 attr_reader :key # @return [Object] # # @api private # @since 0.1.0 attr_reader :value # @param key [String,Symbol] # @param value [Object] # # @api private # @since 0.1.0 def initialize(key, value) @key = key @value = value end # @param settings [Qonfig::Settings] # @return [void] # # @api private # @since 0.1.0 def call(settings) settings.__define_setting__(key, value) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
qonfig-0.1.0 | lib/qonfig/commands/add_option.rb |