Sha256: 2eefd211a28a8227aa90052509049a4ec83e35a081ec5fe1053e687cb743de4c

Contents?: true

Size: 601 Bytes

Versions: 4

Compression:

Stored size: 601 Bytes

Contents

class Hiera
  module Backend
    module Eyaml
      class Options

        def self.[]= key, value
          @@options ||= {}
          @@options[ key.to_sym ] = value
        end

        def self.[] key
          @@options ||= {}
          @@options[ key.to_sym ]
        end

        def self.set hash
          @@options = {}
          hash.each do |k, v|
            @@options[ k.to_sym ] = v
          end
        end

        def self.debug
          @@options.each do |k, v|
            puts "#{k.class.name}:#{k} = #{v.class.name}:#{v}"
          end
        end

      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
hiera-eyaml-1.3.4 lib/hiera/backend/eyaml/options.rb
hiera-eyaml-1.3.3 lib/hiera/backend/eyaml/options.rb
hiera-eyaml-1.3.2 lib/hiera/backend/eyaml/options.rb
hiera-eyaml-1.3.1 lib/hiera/backend/eyaml/options.rb