lib/ztk/base.rb
# Builds Configuration Object
#
# Builds an OpenStruct backed configuration object.
#
# @param [Hash] config Configuration options hash.
# @option config [ZTK::UI] :ui Instance of ZTK:UI to be used for
#   console IO and logging.
# @param [Hash] override Override configuration hash.
Builds Configuration Object
Builds an OpenStruct backed configuration object.
Builds Configuration Object Builds an OpenStruct backed configuration object .
def build_config(config={}, override={})
        config = OpenStruct.new({
          :ui => ::ZTK::UI.new
        }.merge(hash_config(config)).merge(hash_config(override)))
        config.ui.logger.debug { "config=#{config.send(:table).inspect}" }
        config
      end
def build_config ( config = { } , override = { } ) config = OpenStruct . new ( { :ui => :: ZTK :: UI . new } . merge ( hash_config ( config ) ) . merge ( hash_config ( override ) ) ) config . ui . logger . debug { "config=#{config.send(:table).inspect}" } config end
Builds Configuration Object
Builds an OpenStruct backed configuration object.
Builds Configuration Object Builds an OpenStruct backed configuration object .
config
:ui Instance of ZTK:UI to be used for console IO and logging.
: ui Instance of ZTK : UI to be used for console IO and logging .
override
<not_specific>
<not_specific>
override Override configuration hash.
override Override configuration hash .