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-4.1.3 lib/qrda-import/entry_finder.rb
cqm-reports-4.1.2 lib/qrda-import/entry_finder.rb
cqm-reports-4.1.1 lib/qrda-import/entry_finder.rb
cqm-reports-4.1.0 lib/qrda-import/entry_finder.rb
cqm-reports-4.0.1 lib/qrda-import/entry_finder.rb
cqm-reports-3.1.10 lib/qrda-import/entry_finder.rb
cqm-reports-3.1.9 lib/qrda-import/entry_finder.rb
cqm-reports-4.0.0 lib/qrda-import/entry_finder.rb
cqm-reports-3.1.8 lib/qrda-import/entry_finder.rb
cqm-reports-3.1.7 lib/qrda-import/entry_finder.rb
cqm-reports-3.1.6 lib/qrda-import/entry_finder.rb
cqm-reports-3.1.5 lib/qrda-import/entry_finder.rb
cqm-reports-3.1.4 lib/qrda-import/entry_finder.rb
cqm-reports-3.1.3 lib/qrda-import/entry_finder.rb
cqm-reports-2.1.1 lib/qrda-import/entry_finder.rb
cqm-reports-2.1.0 lib/qrda-import/entry_finder.rb
cqm-reports-3.1.2 lib/qrda-import/entry_finder.rb
cqm-reports-3.1.1 lib/qrda-import/entry_finder.rb
cqm-reports-3.1.0 lib/qrda-import/entry_finder.rb
cqm-reports-3.0.1 lib/qrda-import/entry_finder.rb