Sha256: 35985602bfc0dbed33ead226e153bbee0ec7268bb7184ab39662f53fe35b6890

Contents?: true

Size: 745 Bytes

Versions: 1

Compression:

Stored size: 745 Bytes

Contents

require 'config_volumizer/version'
require 'config_volumizer/parser'
require 'config_volumizer/generator'

module ConfigVolumizer
  class << self

    # Parses keys within the {source} hash matching {base_name}
    # returning a hash with all the matched data under a string key matching the {base_name}
    #
    # @see ConfigVolumizer::Parser.parse
    #
    # @param [Hash] source
    # @param [String] base_name
    # @return [Hash]
    def parse(source, mapping)
      Parser.parse(source, mapping)
    end

    # Generates a flattened config out of a data hash
    #
    # @see ConfigVolumizer::Generator.generate
    #
    # @param [Hash] data
    # @return [Hash]
    def generate(data)
      Generator.generate(data)
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
config_volumizer-0.3.0 lib/config_volumizer.rb