Module: Sevgi::Standard::Model::CDataOrSomeElements
- Defined in:
- lib/sevgi/standard/model.rb
Instance Method Summary collapse
Instance Method Details
#apply(cdata:, elements:) ⇒ Object
13 14 15 16 |
# File 'lib/sevgi/standard/model.rb', line 13 def apply(cdata:, elements:) unallowed = elements - spec[:elements] UnallowedElementsError.(element, unallowed) unless unallowed.empty? end |