Class: ChupaText::Decomposers::XML::Listener
- Inherits:
-
Object
- Object
- ChupaText::Decomposers::XML::Listener
- Includes:
- REXML::StreamListener
- Defined in:
- lib/chupa-text/decomposers/xml.rb
Instance Method Summary collapse
-
#initialize(output) ⇒ Listener
constructor
A new instance of Listener.
- #text(text) ⇒ Object
Constructor Details
#initialize(output) ⇒ Listener
Returns a new instance of Listener.
45 46 47 |
# File 'lib/chupa-text/decomposers/xml.rb', line 45 def initialize(output) @output = output end |
Instance Method Details
#text(text) ⇒ Object
49 50 51 |
# File 'lib/chupa-text/decomposers/xml.rb', line 49 def text(text) @output << text end |