Method: Thor::Shell::HTML#output_diff_line
- Defined in:
- lib/thor/shell/html.rb
#output_diff_line(diff) ⇒ Object (protected)
:nodoc:
96 97 98 99 100 101 102 103 104 105 106 107 108 |
# File 'lib/thor/shell/html.rb', line 96 def output_diff_line(diff) #:nodoc: case diff.action when "-" say "- #{diff.old_element.chomp}", :red, true when "+" say "+ #{diff.new_element.chomp}", :green, true when "!" say "- #{diff.old_element.chomp}", :red, true say "+ #{diff.new_element.chomp}", :green, true else say " #{diff.old_element.chomp}", nil, true end end |