Method: Lbp::FilePart#next
- Defined in:
- lib/lbp/file_part.rb
#next ⇒ Object
return part_number end
36 37 38 39 40 41 42 43 44 |
# File 'lib/lbp/file_part.rb', line 36 def next xmlobject = File.new(@filepath, @transcription_type, @confighash).nokogiri nextpartid = xmlobject.xpath("//tei:#{@element}[@xml:id='#{@partid}']/following::tei:#{@element}[1]/@xml:id", 'tei' => 'http://www.tei-c.org/ns/1.0') if nextpartid.text == nil return nil else return FilePart.new(@filepath, @transcription_type, @confighash, nextpartid.text) end end |