Module: Hermod

Defined in:
lib/hermod.rb,
lib/hermod/version.rb,
lib/hermod/xml_node.rb,
lib/hermod/xml_section.rb,
lib/hermod/sanitisation.rb,
lib/hermod/input_mutator.rb,
lib/hermod/validators/base.rb,
lib/hermod/validators/range.rb,
lib/hermod/validators/non_zero.rb,
lib/hermod/xml_section_builder.rb,
lib/hermod/validators/attributes.rb,
lib/hermod/validators/whole_units.rb,
lib/hermod/validators/non_negative.rb,
lib/hermod/validators/type_checker.rb,
lib/hermod/validators/allowed_values.rb,
lib/hermod/validators/value_presence.rb,
lib/hermod/validators/regular_expression.rb

Overview

The namespace for the gem

Defined Under Namespace

Modules: Sanitisation, Validators Classes: InputMutator, XmlNode, XmlSection, XmlSectionBuilder

Constant Summary collapse

VERSION =
"1.2.4"
XmlError =

Internal: the base class from which all Hermod errors inherit

Class.new(StandardError)
InvalidInputError =

Public: the error that’s raised whenever some validation or constraint specified on a node fails.

Class.new(XmlError)
DuplicateNodeError =

Public: the error that’s raised when you try to define two nodes with the same name when building an XmlSection.

Class.new(XmlError)