Sha256: a7eef643a39c3ab552324a134321423e5dcc4f9e0b9df973e59797af6c472586

Contents?: true

Size: 397 Bytes

Versions: 39

Compression:

Stored size: 397 Bytes

Contents

module QRDA
  module Cat1
    class EntryFinder
      def initialize(entry_xpath)
        @entry_xpath = entry_xpath
      end

      def entries(doc)
        entry_elements = doc.xpath(@entry_xpath)
        if block_given?
          entry_elements.each do |entry_element|
            yield entry_element
          end
        else
          entry_elements
        end
      end
    end
  end
end

Version data entries

39 entries across 39 versions & 2 rubygems

Version Path
cqm-reports-3.0.0 lib/qrda-import/entry_finder.rb
cqm-reports-2.0.8 lib/qrda-import/entry_finder.rb
cqm-reports-2.0.7 lib/qrda-import/entry_finder.rb
cqm-reports-2.0.6 lib/qrda-import/entry_finder.rb
cqm-reports-2.0.5 lib/qrda-import/entry_finder.rb
cqm-parsers-0.2.4 lib/qrda-import/entry_finder.rb
cqm-reports-3.0.0.pre.alpha.2 lib/qrda-import/entry_finder.rb
cqm-reports-2.0.4 lib/qrda-import/entry_finder.rb
cqm-reports-2.0.3 lib/qrda-import/entry_finder.rb
cqm-reports-3.0.0.pre.alpha.1 lib/qrda-import/entry_finder.rb
cqm-reports-2.0.2 lib/qrda-import/entry_finder.rb
cqm-reports-2.0.1 lib/qrda-import/entry_finder.rb
cqm-reports-2.0.0 lib/qrda-import/entry_finder.rb
cqm-reports-1.0.0.0 lib/qrda-import/entry_finder.rb
cqm-parsers-0.2.3 lib/qrda-import/entry_finder.rb
cqm-parsers-0.2.2 lib/qrda-import/entry_finder.rb
cqm-parsers-0.2.1 lib/qrda-import/entry_finder.rb
cqm-parsers-0.1.1 lib/qrda-import/entry_finder.rb
cqm-parsers-0.1.0 lib/qrda-import/entry_finder.rb