class Oga::XML::CharacterNode
Base class for nodes that represent a text-like value such as Text
and Comment
nodes.
Attributes
text[RW]
@return [String]
Public Class Methods
new(options = {})
click to toggle source
@param [Hash] options
@option options [String] :text The text of the node.
Calls superclass method
# File lib/oga/xml/character_node.rb, line 12 def initialize(options = {}) super @text = options[:text] end
Public Instance Methods
inspect()
click to toggle source
@return [String]
# File lib/oga/xml/character_node.rb, line 19 def inspect "#{self.class.to_s.split('::').last}(#{text.inspect})" end