method
output_diff_line
v2_6_3 -
Show latest stable
- Class:
Bundler::Thor::Shell::HTML
output_diff_line(diff)protected
No documentation available.
# File lib/bundler/vendor/thor/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