Class: Aws::Xml::Parser::NokogiriEngine Private
- Inherits:
- 
      Object
      
        - Object
- Aws::Xml::Parser::NokogiriEngine
 
- Defined in:
- lib/aws-sdk-core/xml/parser/nokogiri_engine.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
- #characters(chars) ⇒ Object private
- #comment(*args) ⇒ Object private
- #end_document ⇒ Object private
- #end_element_namespace(*ignored) ⇒ Object private
- #error(msg) ⇒ Object private
- 
  
    
      #initialize(stack)  ⇒ NokogiriEngine 
    
    
  
  
  
    constructor
  
  
  
  
  
  private
  
    A new instance of NokogiriEngine. 
- #parse(xml) ⇒ Object private
- #start_document ⇒ Object private
- #start_element_namespace(element_name, attributes = [], *ignored) ⇒ Object private
- #xmldecl(*args) ⇒ Object private
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.
| 10 11 12 | # File 'lib/aws-sdk-core/xml/parser/nokogiri_engine.rb', line 10 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.
| 32 33 34 | # File 'lib/aws-sdk-core/xml/parser/nokogiri_engine.rb', line 32 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.
| 21 | # File 'lib/aws-sdk-core/xml/parser/nokogiri_engine.rb', line 21 def comment(*args); end | 
#end_document ⇒ 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.
| 20 | # File 'lib/aws-sdk-core/xml/parser/nokogiri_engine.rb', line 20 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.
| 36 37 38 | # File 'lib/aws-sdk-core/xml/parser/nokogiri_engine.rb', line 36 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.
| 40 41 42 | # File 'lib/aws-sdk-core/xml/parser/nokogiri_engine.rb', line 40 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.
| 14 15 16 | # File 'lib/aws-sdk-core/xml/parser/nokogiri_engine.rb', line 14 def parse(xml) Nokogiri::XML::SAX::Parser.new(self).parse(xml) end | 
#start_document ⇒ 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/nokogiri_engine.rb', line 19 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.
| 23 24 25 26 27 28 29 30 | # File 'lib/aws-sdk-core/xml/parser/nokogiri_engine.rb', line 23 def start_element_namespace(element_name, attributes = [], *ignored) @stack.start_element(element_name) attributes.each do |attr| name = attr.localname name = "#{attr.prefix}:#{name}" if attr.prefix @stack.attr(name, 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.
| 18 | # File 'lib/aws-sdk-core/xml/parser/nokogiri_engine.rb', line 18 def xmldecl(*args); end |