Class: SVNx::Log::Entries

Inherits:
Entries
  • Object
show all
Defined in:
lib/svnx/log/entries.rb

Instance Attribute Summary

Attributes inherited from Entries

#size

Instance Method Summary collapse

Methods inherited from Entries

#[], #each, #initialize

Constructor Details

This class inherits a constructor from SVNx::Entries

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 => xmlelement
end

#get_elements(doc) ⇒ Object



9
10
11
# File 'lib/svnx/log/entries.rb', line 9

def get_elements doc
  doc.elements['log'].elements
end

#match(action, filter) ⇒ Object



17
18
19
20
21
22
23
# File 'lib/svnx/log/entries.rb', line 17

def match action, filter
  matching = Array.new
  each do |entry|
    matching.concat entry.match(action, filter)
  end
  matching.sort
end