hutch-xamplr-pp 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,49 @@
1
+
2
+ require "xpp"
3
+
4
+ class Xpp
5
+ def startDocument?
6
+ @type.equal? START_DOCUMENT
7
+ end
8
+
9
+ def endDocument?
10
+ @type.equal? END_DOCUMENT
11
+ end
12
+
13
+ def startElement?
14
+ @type.equal? START_ELEMENT
15
+ end
16
+
17
+ def endElement?
18
+ @type.equal? END_ELEMENT
19
+ end
20
+
21
+ def text?
22
+ @type.equal? TEXT
23
+ end
24
+
25
+ def cdata?
26
+ @type.equal? CDATA_SECTION
27
+ end
28
+
29
+ def entityRef?
30
+ @type.equal? ENTITY_REF
31
+ end
32
+
33
+ def ignorableWhitespace?
34
+ @type.equal? IGNORABLE_WHITESPACE
35
+ end
36
+
37
+ def processingInstruction?
38
+ @type.equal? PROCESSING_INSTRUCTION
39
+ end
40
+
41
+ def comment?
42
+ @type.equal? COMMENT
43
+ end
44
+
45
+ def doctype?
46
+ @type.equal? DOCTYPE
47
+ end
48
+ end
49
+