class QRDA::Cat1::EntryFinder
Public Class Methods
new(entry_xpath)
click to toggle source
# File lib/qrda-import/entry_finder.rb, line 4 def initialize(entry_xpath) @entry_xpath = entry_xpath end
Public Instance Methods
entries(doc) { |entry_element| ... }
click to toggle source
# File lib/qrda-import/entry_finder.rb, line 8 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