module DiffableString

Public Instance Methods

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