Sha256: 82fb869f8103c2d6f6f5119368e3236af57fa6159a38c300b8f5a5671af7e709

Contents?: true

Size: 149 Bytes

Versions: 4

Compression:

Stored size: 149 Bytes

Contents

module Penchant
  class Defaults
    def initialize
      @defaults = {}
    end

    def [](key)
      @defaults[key.to_s] ||= {}
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
penchant-0.2.29 lib/penchant/defaults.rb
penchant-0.2.28 lib/penchant/defaults.rb
penchant-0.2.27 lib/penchant/defaults.rb
penchant-0.2.26 lib/penchant/defaults.rb