Module: Sevgi::Standard::Model::NoneElements

Defined in:
lib/sevgi/standard/model.rb

Instance Method Summary collapse

Instance Method Details

#apply(cdata:, elements:) ⇒ Object



20
21
22
23
24
# File 'lib/sevgi/standard/model.rb', line 20

def apply(cdata:, elements:)
  UnallowedCDataError.(element, cdata) if cdata

  UnallowedElementsError.(element, elements) unless elements.empty?
end