# File lib/rugged/tree.rb, line 8 def diff(other = nil, options = nil) Tree.diff(repo, self, other, options) end
Iterate over the blobs in this tree
# File lib/rugged/tree.rb, line 29 def each_blob self.each { |e| yield e if e[:type] == :blob } end
Iterat over the subtrees in this tree
# File lib/rugged/tree.rb, line 34 def each_tree self.each { |e| yield e if e[:type] == :tree } end
# File lib/rugged/tree.rb, line 12 def inspect data = "#<Rugged::Tree:#{object_id} {oid: #{oid}}>\n" self.each { |e| data << " <\"#{e[:name]}\" #{e[:oid]}>\n" } data end
Generated with the Darkfish Rdoc Generator 2.