Module: Astel::Diffable

Included in:
Rewriter
Defined in:
lib/astel/unified_diff.rb

Instance Method Summary collapse

Instance Method Details

#to_diff(context: 3, path: @source_file.path) ⇒ Object



199
200
201
# File 'lib/astel/unified_diff.rb', line 199

def to_diff(context: 3, path: @source_file.path)
  UnifiedDiff.unified(@source_file.source, rewrite, path: path, context: context)
end