lib/cucumber/gherkin/formatter/ansi_escapes.rb in cucumber-9.1.1 vs lib/cucumber/gherkin/formatter/ansi_escapes.rb in cucumber-9.1.2
- old
+ new
@@ -3,12 +3,11 @@
module Cucumber
module Gherkin
module Formatter
# Defines aliases for ANSI coloured output. Default colours can be overridden by defining
# a <tt>GHERKIN_COLORS</tt> variable in your shell, very much like how you can
- # tweak the familiar POSIX command <tt>ls</tt> with
- # $LSCOLORS: http://linux-sxs.org/housekeeping/lscolors.html
+ # tweak the familiar POSIX command <tt>ls</tt> with $LSCOLORS: http://linux-sxs.org/housekeeping/lscolors.html
#
# The colours that you can change are:
#
# <tt>undefined</tt>:: defaults to <tt>yellow</tt>
# <tt>pending</tt>:: defaults to <tt>yellow</tt>
@@ -85,11 +84,11 @@
def reset
"\e[0m"
end
- def up(n)
- "\e[#{n}A"
+ def up(amount)
+ "\e[#{amount}A"
end
end
end
end
end