Sha256: 21f05b14e08f2485bd85b436ad287ee98fecddb4d7085a383f8e7d2d8a4e8eb0

Contents?: true

Size: 243 Bytes

Versions: 1

Compression:

Stored size: 243 Bytes

Contents

require 'ostruct'
module Figtree
  class IniConfig < OpenStruct
    def initialize(array = [])
      # TODO move the reduction to #load_config
      # TODO then this class can be a shell
      super(array.reduce({}, :merge))
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
figtree-0.0.1 lib/figtree/ini_config.rb