Class: Svnx::Log::Entries
Instance Attribute Summary
#size
Instance Method Summary
collapse
#[], #each, #initialize, #to_index
Instance Method Details
#create_entry(xmlelement) ⇒ Object
13
14
15
|
# File 'lib/svnx/log/entries.rb', line 13
def create_entry xmlelement
Entry.new xmlelement
end
|
#get_elements(doc) ⇒ Object
9
10
11
|
# File 'lib/svnx/log/entries.rb', line 9
def get_elements doc
doc.xpath '//log/logentry'
end
|
#match(action, filter) ⇒ Object
17
18
19
20
21
22
23
|
# File 'lib/svnx/log/entries.rb', line 17
def match action, filter
Array.new.tap do |a|
each do |entry|
a.concat entry.match(action, filter)
end
end.sort
end
|