Module Bee::Util::HashCheckerMixin
In: lib/bee_util.rb

Mixin that provides a way to check a hash entries using a description that associates hash keys with a :mandatory or :optional symbol. Other keys are not allowed.

Methods

Included Modules

BuildErrorMixin

Public Instance methods

Check that all mandatory keys are in the hash and all keys in the hash are in description.

  • hash: hash to check.
  • description: hash keys description.

[Validate]