Sha256: b0badcb56c80ddef90741c2e81060321cda13a4f135d83a44c27a077d583d2ba

Contents?: true

Size: 416 Bytes

Versions: 5

Compression:

Stored size: 416 Bytes

Contents

require 'hashie/extensions/method_access'
require 'hashie/extensions/coercion'

module Cupcakinator

  # known configuration variables
  # method
  # dir
  # file
  class Config < Hash
    include Hashie::Extensions::MethodAccess
    include Hashie::Extensions::Coercion

    coerce_value Hash, Config

    def initialize(h={})
      super
      h.each_pair do |k,v|
        self[k] = v
      end
    end

  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
cupcakinator-1.1.0 lib/cupcakinator/config.rb
cupcakinator-1.0.1 lib/cupcakinator/config.rb
cupcakinator-1.0.0 lib/cupcakinator/config.rb
cupcakinator-0.0.4 lib/cupcakinator/config.rb
cupcakinator-0.0.2 lib/cupcakinator/config.rb