Sha256: 48d06812df4f4f5653353569f152208a11a5f0b3216ab4967803b215ac9b2685

Contents?: true

Size: 278 Bytes

Versions: 2

Compression:

Stored size: 278 Bytes

Contents

require 'squid/config'

module Squid
  # @private
  module Settings
    def has_settings(*keys)
      keys.each do |key|
        define_method key do
          @settings.fetch key, Squid.configuration.public_send(key)
        end
        private key
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
squid-1.0.0.beta2 lib/squid/settings.rb
squid-1.0.0.beta1 lib/squid/settings.rb