lib/ztk/base.rb
# Configuration OpenStruct accessor method.
#
# If no block is given, the method will return the configuration OpenStruct
# object.  If a block is given, the block is yielded with the configuration
# OpenStruct object.
#
# @yieldparam [OpenStruct] config The configuration OpenStruct object.
# @return [OpenStruct] The configuration OpenStruct object.
Configuration OpenStruct accessor method.
If no block is given, the method will return the configuration OpenStruct
object.  If a block is given, the block is yielded with the configuration
OpenStruct object.
Configuration OpenStruct accessor method . If no block is given the method will return the configuration OpenStruct object . If a block is given the block is yielded with the configuration OpenStruct object .
def config(&block)
      if block_given?
        block.call(@config)
      else
        @config
      end
    end
def config ( & block ) if block_given? block . call ( @config ) else @config end end
Configuration OpenStruct accessor method.
Configuration OpenStruct accessor method .
The configuration OpenStruct object.
The configuration OpenStruct object .
OpenStruct
block
<not_specific>
<not_specific>
config The configuration OpenStruct object.
config The configuration OpenStruct object .