Sha256: fdb92bd15cc1ebe4ead1085feb89e7de604ba96581c6cb79af3b922095c1b1f4

Contents?: true

Size: 600 Bytes

Versions: 6

Compression:

Stored size: 600 Bytes

Contents

require "xpp"

class Xpp
	def startDocument?
		@type.equal? START_DOCUMENT
	end

	def endDocument?
		@type.equal? END_DOCUMENT
	end

	def startElement?
		@type.equal? START_ELEMENT
	end

	def endElement?
		@type.equal? END_ELEMENT
	end

	def text?
		@type.equal? TEXT
	end

	def cdata?
		@type.equal? CDATA_SECTION
	end

	def entityRef?
		@type.equal? ENTITY_REF
	end

	def ignorableWhitespace?
		@type.equal? IGNORABLE_WHITESPACE
	end

	def processingInstruction?
		@type.equal? PROCESSING_INSTRUCTION
	end

	def comment?
		@type.equal? COMMENT
	end

	def doctype?
		@type.equal? DOCTYPE
	end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
hutch-xamplr-pp-1.0.0 lib/xamplr-pp/xppDeluxe.rb
hutch-xamplr-pp-1.1.0 lib/xamplr-pp/xppDeluxe.rb
hutch-xamplr-pp-1.1.2 lib/xamplr-pp/xppDeluxe.rb
xamplr-pp-1.2.0 lib/xamplr-pp/xppDeluxe.rb
xamplr-pp-1.1.4 lib/xamplr-pp/xppDeluxe.rb
xamplr-pp-1.0.0 lib/xamplr-pp/xppDeluxe.rb