Method: DBA::Printer#print_diff
- Defined in:
- lib/dba/printer.rb
#print_diff(before_lines, after_lines) ⇒ Object
42 43 44 45 46 47 48 |
# File 'lib/dba/printer.rb', line 42 def print_diff(before_lines, after_lines) removed = before_lines - after_lines removed.each { |line| io.puts pastel.red("- #{line}") } added = after_lines - before_lines added.each { |line| io.puts pastel.bright_black("+ #{line}") } end |