Sha256: a9b490b48b3a047826d38d1de36fdf5cb1b85abed4f8959666f4d7307229e785
Contents?: true
Size: 371 Bytes
Versions: 2
Compression:
Stored size: 371 Bytes
Contents
require 'diffy' module MethodLog class MethodDiff def initialize(first_commit: nil, second_commit: nil) @first_commit, @second_commit = first_commit, second_commit end def to_s(mode = :text) Diffy::Diff.new(@first_commit.method_source, @second_commit.method_source).to_s(mode) end def empty? to_s.chomp.empty? end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
method_log-0.0.5 | lib/method_log/method_diff.rb |
method_log-0.0.4 | lib/method_log/method_diff.rb |