class Svnx::Log::EntryPath
Attributes
action[R]
kind[R]
name[R]
prop_mods[R]
text_mods[R]
Public Class Methods
new(attr: nil, kind: nil, action: nil, name: nil, prop_mods: nil, text_mods: nil)
click to toggle source
# File lib/svnx/log/entrypath.rb, line 17 def initialize attr: nil, kind: nil, action: nil, name: nil, prop_mods: nil, text_mods: nil if attr @kind = attribute_value attr, 'kind' @action = Svnx::Action.new(attribute_value attr, 'action') @name = attr.text @prop_mods = "true" == attribute_value(attr, 'prop-mods') @text_mods = "true" == attribute_value(attr, 'text-mods') else @kind = kind @action = action @name = name @prop_mods = prop_mods @text_mods = text_mods end end
Public Instance Methods
<=>(other)
click to toggle source
# File lib/svnx/log/entrypath.rb, line 41 def <=> other name <=> other.name end
attribute_value(xmlelement, attrname, meth = nil)
click to toggle source
# File lib/svnx/log/entrypath.rb, line 49 def attribute_value xmlelement, attrname, meth = nil value = xmlelement[attrname.to_s] meth ? value.send(meth) : value end
inspect()
click to toggle source
# File lib/svnx/log/entrypath.rb, line 37 def inspect to_s end
match?(action, filter)
click to toggle source
# File lib/svnx/log/entrypath.rb, line 45 def match? action, filter @action.to_s == action.to_s && @name.start_with?(filter) end
to_s()
click to toggle source
# File lib/svnx/log/entrypath.rb, line 33 def to_s @name end