Method: MethodLog::API#diffs
- Defined in:
- lib/method_log/api.rb
#diffs(method_identifier, options = {}) ⇒ Object
30 31 32 33 34 35 36 37 38 39 |
# File 'lib/method_log/api.rb', line 30 def diffs(method_identifier, = {}) Enumerator.new do |yielder| history(method_identifier, ).each_cons(2) do |(commit, parent)| diff = MethodDiff.new(parent, commit) unless diff.empty? yielder << [commit, diff] end end end end |