Method: Blather::Stream::Parser#receive_data

Defined in:
lib/blather/stream/parser.rb

#receive_data(string) ⇒ Object Also known as: <<



21
22
23
24
25
26
27
# File 'lib/blather/stream/parser.rb', line 21

def receive_data(string)
  Blather.log "PARSING: (#{string})" if @@debug
  @parser << string
  self
rescue Nokogiri::XML::SyntaxError => e
  error e.message
end