Sha256: 7f06f93dd4721c25dad6f876f27d311cc70cc5e0322820ce50116cf40febb887

Contents?: true

Size: 188 Bytes

Versions: 3

Compression:

Stored size: 188 Bytes

Contents

module Differ
  module StringDiffer
    def diff(old)
      Differ.diff(self, old, $; || "\n")
    end
    alias :- :diff
  end
end

String.class_eval do
  include Differ::StringDiffer
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
pvande-differ-0.1.1 lib/differ/string.rb
differ-0.1.2 lib/differ/string.rb
differ-0.1.1 lib/differ/string.rb