Sha256: 8c9b735b15d808b9b4f566256c799fb595edce6b60f26e1f9060d9c256c6a6a1

Contents?: true

Size: 263 Bytes

Versions: 4

Compression:

Stored size: 263 Bytes

Contents

module ICuke
  class Configuration
    def initialize(defaults = {})
      @data = defaults
    end
    
    def set(key, value)
      @data[key] = value
    end
    
    def get(key)
      @data[key]
    end
    
    def [](key)
      get(key)
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
iCuke-0.7.0 lib/icuke/configuration.rb
iCuke-0.6.6 lib/icuke/configuration.rb
iCuke-0.6.5 lib/icuke/configuration.rb
iCuke-0.6.4 lib/icuke/configuration.rb