class SXRB::TextNode
Class representing special case of DOM nodes which contain only text, and don't represent any particular element.
Public Class Methods
new(text)
click to toggle source
@api private
# File lib/sxrb/text_node.rb, line 6 def initialize(text) @text = text || "" end
Public Instance Methods
append_text(text)
click to toggle source
@api private
# File lib/sxrb/text_node.rb, line 11 def append_text(text) @text << text end
text()
click to toggle source
Accessor for text data kept in TextNode
object. @return [String]
# File lib/sxrb/text_node.rb, line 17 def text @text end