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.
44 45 46 |
# File 'lib/chupa-text/decomposers/xml.rb', line 44 def initialize(output) @output = output end |
Instance Method Details
#text(text) ⇒ Object
48 49 50 |
# File 'lib/chupa-text/decomposers/xml.rb', line 48 def text(text) @output << text end |