Module: Sevgi::Standard::Model::NoneElements Private
- Defined in:
- lib/sevgi/standard/model.rb
Overview
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Validates empty elements.
Instance Method Summary collapse
-
#apply(cdata:, elements:) ⇒ nil
private
Applies this content model.
Instance Method Details
#apply(cdata:, elements:) ⇒ nil
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Applies this content model.
45 46 47 48 49 |
# File 'lib/sevgi/standard/model.rb', line 45 def apply(cdata:, elements:) UnallowedCDataError.(element, cdata) if cdata UnallowedElementsError.(element, elements) unless elements.empty? end |