class Svnx::Status::Entry
Attributes
name[R]
path[R]
working_copy[R]
Public Class Methods
new(xmlelement, rootpath: nil)
click to toggle source
Calls superclass method
Svnx::Base::Entry::new
# File lib/svnx/status/entry.rb, line 48 def initialize xmlelement, rootpath: nil @rootpath = rootpath super xmlelement end
Public Instance Methods
<=>(other)
click to toggle source
# File lib/svnx/status/entry.rb, line 71 def <=> other path <=> other.path end
set_from_element(elmt)
click to toggle source
# File lib/svnx/status/entry.rb, line 53 def set_from_element elmt set_attr_var elmt, 'path' wcstatus = elmt.at_xpath 'wc-status' @name = @path.dup @working_copy = WorkingCopy.new wcstatus if @rootpath # name is prefixed with directory unless '.' is used as the argument @name.sub! Regexp.new('^' + @rootpath), '' end end
to_s()
click to toggle source
# File lib/svnx/status/entry.rb, line 67 def to_s " #{@path}: #{@status}" end