Sha256: d77f745028b1bf74def4454b3cdf2d345f15de06249fda9b79c5fc42bc023bc3
Contents?: true
Size: 529 Bytes
Versions: 2
Compression:
Stored size: 529 Bytes
Contents
# encoding: UTF-8 module LibXML module XML class Schema::Element def required? !min_occurs.zero? end def array? max_occurs > 1 end def elements type.elements end def annotation return if node.nil? annotations = node.children.select { |n| n.name == 'annotation' } annotations.map do |annotation| annotation.children.map(&:content).join("\n") end.join("\n") end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
libxml-ruby-3.0.0-x64-mingw32 | lib/libxml/schema/element.rb |
libxml-ruby-3.0.0 | lib/libxml/schema/element.rb |