class Svnx::Status::Entries
Public Class Methods
new(lines, rootpath: nil)
click to toggle source
Calls superclass method
Svnx::Base::Entries::new
# File lib/svnx/status/entries.rb, line 9 def initialize lines, rootpath: nil @rootpath = rootpath super lines end
Public Instance Methods
create_entry(xmlelement)
click to toggle source
# File lib/svnx/status/entries.rb, line 27 def create_entry xmlelement Entry.new xmlelement, rootpath: @rootpath end
get_elements(doc)
click to toggle source
# File lib/svnx/status/entries.rb, line 18 def get_elements doc if $use_nokogiri doc.xpath xpath else # status/target doc.elements['status'].elements['target'].elements end end
xpath()
click to toggle source
# File lib/svnx/status/entries.rb, line 14 def xpath '//status/target/entry' end