/usr/lib/ruby/vendor_ruby/nokogiri/xml/element_content.rb is in ruby-nokogiri 1.6.8.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | module Nokogiri
module XML
###
# Represents the allowed content in an Element Declaration inside a DTD:
#
# <?xml version="1.0"?><?TEST-STYLE PIDATA?>
# <!DOCTYPE staff SYSTEM "staff.dtd" [
# <!ELEMENT div1 (head, (p | list | note)*, div2*)>
# ]>
# </root>
#
# ElementContent represents the tree inside the <!ELEMENT> tag shown above
# that lists the possible content for the div1 tag.
class ElementContent
# Possible definitions of type
PCDATA = 1
ELEMENT = 2
SEQ = 3
OR = 4
# Possible content occurrences
ONCE = 1
OPT = 2
MULT = 3
PLUS = 4
attr_reader :document
###
# Get the children of this ElementContent node
def children
[c1, c2].compact
end
end
end
end
|