Class: Aws::RightSaxParserCallback
- Inherits:
-
Object
- Object
- Aws::RightSaxParserCallback
- Defined in:
- lib/awsbase/parsers.rb
Overview
Class Method Summary collapse
-
.include_callback ⇒ Object
:nodoc:.
Instance Method Summary collapse
-
#initialize(right_aws_parser) ⇒ RightSaxParserCallback
constructor
A new instance of RightSaxParserCallback.
- #on_cdata_block(cdata) ⇒ Object
- #on_characters(chars) ⇒ Object
- #on_comment(msg) ⇒ Object
- #on_end_document ⇒ Object
- #on_end_element(name) ⇒ Object
- #on_processing_instruction(target, data) ⇒ Object
- #on_start_document ⇒ Object
- #on_start_element(name, attr_hash) ⇒ Object
Constructor Details
#initialize(right_aws_parser) ⇒ RightSaxParserCallback
Returns a new instance of RightSaxParserCallback.
10 11 12 |
# File 'lib/awsbase/parsers.rb', line 10 def initialize(right_aws_parser) @right_aws_parser = right_aws_parser end |
Class Method Details
.include_callback ⇒ Object
:nodoc:
6 7 8 |
# File 'lib/awsbase/parsers.rb', line 6 def self.include_callback include XML::SaxParser::Callbacks end |
Instance Method Details
#on_cdata_block(cdata) ⇒ Object
37 38 39 |
# File 'lib/awsbase/parsers.rb', line 37 def on_cdata_block(cdata) ; end |
#on_characters(chars) ⇒ Object
18 19 20 |
# File 'lib/awsbase/parsers.rb', line 18 def on_characters(chars) @right_aws_parser.text(chars) end |
#on_comment(msg) ⇒ Object
29 30 31 |
# File 'lib/awsbase/parsers.rb', line 29 def on_comment(msg) ; end |
#on_end_document ⇒ Object
41 42 |
# File 'lib/awsbase/parsers.rb', line 41 def on_end_document; end |
#on_end_element(name) ⇒ Object
22 23 24 |
# File 'lib/awsbase/parsers.rb', line 22 def on_end_element(name) @right_aws_parser.tag_end(name) end |
#on_processing_instruction(target, data) ⇒ Object
33 34 35 |
# File 'lib/awsbase/parsers.rb', line 33 def on_processing_instruction(target, data) ; end |
#on_start_document ⇒ Object
26 27 |
# File 'lib/awsbase/parsers.rb', line 26 def on_start_document; end |
#on_start_element(name, attr_hash) ⇒ Object
14 15 16 |
# File 'lib/awsbase/parsers.rb', line 14 def on_start_element(name, attr_hash) @right_aws_parser.tag_start(name, attr_hash) end |