Method: Oga::XML::CharacterNode#initialize

Defined in:
lib/oga/xml/character_node.rb

#initialize(options = {}) ⇒ CharacterNode

Returns a new instance of CharacterNode.

Parameters:

  • options (Hash) (defaults to: {})

Options Hash (options):

  • :text (String)

    The text of the node.



12
13
14
15
16
# File 'lib/oga/xml/character_node.rb', line 12

def initialize(options = {})
  super

  @text = options[:text]
end