Class: PBSimply::ConfigChecker
- Inherits:
-
Object
- Object
- PBSimply::ConfigChecker
- Defined in:
- lib/pbsimply/config-checker.rb
Defined Under Namespace
Classes: InvalidConfigError
Class Method Summary collapse
Class Method Details
.verify_config(config) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/pbsimply/config-checker.rb', line 8 def self.verify_config config # blessmethod_accs_rel if config["blessmethod_accs_rel"] && ! %w:numbering date timestamp lexical:.include?(config["blessmethod_accs_rel"]) raise InvalidConfigError.new("blessmethod_accs_rel must be either numbering, date, timestamp or lexical.") end # unicode_normalize if config["unicode_normalize"] && ! %w:nfc nfd nfkc nfkd:.include?(config["unicode_normalize"]) raise InvalidConfigError.new("unicode_normalize must be either nfc, nfd, nfkc or nfkd.") end end |