Class: ChupaText::Decomposers::XML::Listener

Inherits:
Object
  • Object
show all
Includes:
REXML::StreamListener
Defined in:
lib/chupa-text/decomposers/xml.rb

Instance Method Summary collapse

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