Module Facter::Util::Normalization
In: lib/facter/util/normalization.rb

Methods

Classes and Modules

Class Facter::Util::Normalization::NormalizationError

Constants

VALID_TYPES = [Integer, Float, TrueClass, FalseClass, NilClass, String, Array, Hash]

Public Instance methods

Recursively normalize the given data structure

@api public @raise [NormalizationError] If the data structure contained an invalid element. @return [void]

Validate all elements of the array.

@api public @raise [NormalizationError] If one of the elements failed validation @param value [Array] @return [void]

Validate all keys and values of the hash.

@api public @raise [NormalizationError] If one of the keys or values failed normalization @param value [Hash] @return [void]

[Validate]