module Cucumber::Term::ANSIColor

def uncolored(text = nil)

ANSI-sequences are stripped from the string.
Returns an uncolored version of the string
def uncolored(text = nil)
  if block_given?
    uncolorize(yield)
  elsif text
    uncolorize(text)
  elsif respond_to?(:to_str)
    uncolorize(to_str)
  else
    ''
  end
end