Class: Aws::Xml::Parser::NokogiriEngine Private

Inherits:
Object
  • Object
show all
Defined in:
lib/aws-sdk-core/xml/parser/engines/nokogiri.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Method Summary collapse

Constructor Details

#initialize(stack) ⇒ NokogiriEngine

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of NokogiriEngine.



8
9
10
# File 'lib/aws-sdk-core/xml/parser/engines/nokogiri.rb', line 8

def initialize(stack)
  @stack = stack
end

Instance Method Details

#characters(chars) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



28
29
30
# File 'lib/aws-sdk-core/xml/parser/engines/nokogiri.rb', line 28

def characters(chars)
  @stack.text(chars)
end

#comment(*args) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



19
# File 'lib/aws-sdk-core/xml/parser/engines/nokogiri.rb', line 19

def comment(*args); end

#end_documentObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



18
# File 'lib/aws-sdk-core/xml/parser/engines/nokogiri.rb', line 18

def end_document; end

#end_element_namespace(*ignored) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



32
33
34
# File 'lib/aws-sdk-core/xml/parser/engines/nokogiri.rb', line 32

def end_element_namespace(*ignored)
  @stack.end_element
end

#error(msg) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



36
37
38
# File 'lib/aws-sdk-core/xml/parser/engines/nokogiri.rb', line 36

def error(msg)
  @stack.error(msg)
end

#parse(xml) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



12
13
14
# File 'lib/aws-sdk-core/xml/parser/engines/nokogiri.rb', line 12

def parse(xml)
  Nokogiri::XML::SAX::Parser.new(self).parse(xml)
end

#start_documentObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



17
# File 'lib/aws-sdk-core/xml/parser/engines/nokogiri.rb', line 17

def start_document; end

#start_element_namespace(element_name, attributes = [], *ignored) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



21
22
23
24
25
26
# File 'lib/aws-sdk-core/xml/parser/engines/nokogiri.rb', line 21

def start_element_namespace(element_name, attributes = [], *ignored)
  @stack.start_element(element_name)
  attributes.each do |attr|
    @stack.attr(attr.localname, attr.value)
  end
end

#xmldecl(*args) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



16
# File 'lib/aws-sdk-core/xml/parser/engines/nokogiri.rb', line 16

def xmldecl(*args); end