Sha256: ffb9d18f47cd56c106d0fd1094c26e936ecdd9f2204cbcb1b0cccf474613086f

Contents?: true

Size: 465 Bytes

Versions: 5

Compression:

Stored size: 465 Bytes

Contents

module Dcha
  # :nodoc:
  class Config
    class << self
      def respond_to_missing?(name)
        instance.respond_to_missing?(name)
      end

      def method_missing(name, *args, &block)
        return instance.send(name, *args, &block) if instance.respond_to?(name)
        super
      end
    end

    include Singleton

    attr_accessor :digest, :store

    def initialize
      @digest = Digest::SHA256
      @store = Store::Memory.new
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
dcha-0.1.4 lib/dcha/config.rb
dcha-0.1.3 lib/dcha/config.rb
dcha-0.1.2 lib/dcha/config.rb
dcha-0.1.1 lib/dcha/config.rb
dcha-0.1.0 lib/dcha/config.rb