class XML::DOM::CharacterData
begin¶ ↑
Class XML::DOM::CharacterData¶ ↑
superclass¶ ↑
end¶ ↑
begin¶ ↑
Class XML::DOM::CharacterData¶ ↑
superclass¶ ↑
end¶ ↑
Public Class Methods
new(text = nil)
click to toggle source
begin¶ ↑
Class Methods¶ ↑
Calls superclass method
XML::DOM::Node.new
# File lib/xml/dom/core.rb, line 2295 def initialize(text = nil) super() raise "parameter error" if !text @value = text end
Public Instance Methods
appendData(str)
click to toggle source
cloneNode(deep = true)
click to toggle source
begin¶ ↑
Calls superclass method
XML::DOM::Node#cloneNode
# File lib/xml/dom/core.rb, line 2413 def cloneNode(deep = true) super(deep, @value.dup) end
data()
click to toggle source
data=(p)
click to toggle source
deleteData(offset, count)
click to toggle source
insertData(offset, str)
click to toggle source
length()
click to toggle source
nodeValue()
click to toggle source
nodeValue=(p)
click to toggle source
replaceData(offset, count, str)
click to toggle source
substringData(start, count)
click to toggle source
begin¶ ↑
# File lib/xml/dom/core.rb, line 2343 def substringData(start, count) if start < 0 || start > @value.length || count < 0 raise DOMException.new(DOMException::INDEX_SIZE_ERR) end ## if the sum of start and count > length, ## return all characters to the end of the value. @value[start, count] end