Class: Abroad::Extractors::Xml::XmlExtractor

Inherits:
Extractor
  • Object
show all
Defined in:
lib/abroad/extractors/xml/xml_extractor.rb

Direct Known Subclasses

AndroidExtractor

Instance Attribute Summary

Attributes inherited from Extractor

#stream

Instance Method Summary collapse

Methods inherited from Extractor

#close, from_stream, from_string, #initialize, open

Constructor Details

This class inherits a constructor from Abroad::Extractors::Extractor

Instance Method Details

#extract_each(options = {}, &block) ⇒ Object



8
9
10
11
12
13
14
# File 'lib/abroad/extractors/xml/xml_extractor.rb', line 8

def extract_each(options = {}, &block)
  if block_given?
    each_entry(&block)
  else
    to_enum(__method__, options)
  end
end