module DiffableString

Public Instance Methods

diff(b) click to toggle source
# File lib/taskjuggler/AlgorithmDiff.rb, line 302
def diff(b)
  split("\n").extend(Diffable).diff(b.split("\n"))
end
patch(hunks) click to toggle source
# File lib/taskjuggler/AlgorithmDiff.rb, line 306
def patch(hunks)
  split("\n").extend(Diffable).patch(hunks).join("\n") + "\n"
end