Class: ChupaText::SAXParser::Listener
- Inherits:
-
Object
- Object
- ChupaText::SAXParser::Listener
- Includes:
- REXML::SAX2Listener
- Defined in:
- lib/chupa-text/sax-parser.rb
Instance Method Summary collapse
-
#cdata(content) ⇒ Object
-
#characters(text) ⇒ Object
-
#end_element(*args) ⇒ Object
-
#end_prefix_mapping(*args) ⇒ Object
-
#initialize(listener) ⇒ Listener
constructor
A new instance of Listener.
-
#start_element(*args) ⇒ Object
-
#start_prefix_mapping(*args) ⇒ Object
Constructor Details
#initialize(listener) ⇒ Listener
Returns a new instance of Listener.
140 141 142 |
# File 'lib/chupa-text/sax-parser.rb', line 140 def initialize(listener) @listener = listener end |
Instance Method Details
#cdata(content) ⇒ Object
165 166 167 |
# File 'lib/chupa-text/sax-parser.rb', line 165 def cdata(content) @listener.cdata(content) end |
#characters(text) ⇒ Object
161 162 163 |
# File 'lib/chupa-text/sax-parser.rb', line 161 def characters(text) @listener.characters(text) end |
#end_element(*args) ⇒ Object
156 157 158 |
# File 'lib/chupa-text/sax-parser.rb', line 156 def end_element(*args) @listener.end_element(*args) end |
#end_prefix_mapping(*args) ⇒ Object
148 149 150 |
# File 'lib/chupa-text/sax-parser.rb', line 148 def end_prefix_mapping(*args) @listener.end_prefix_mapping(*args) end |
#start_element(*args) ⇒ Object
152 153 154 |
# File 'lib/chupa-text/sax-parser.rb', line 152 def start_element(*args) @listener.start_element(*args) end |
#start_prefix_mapping(*args) ⇒ Object
144 145 146 |
# File 'lib/chupa-text/sax-parser.rb', line 144 def start_prefix_mapping(*args) @listener.start_prefix_mapping(*args) end |