module Cucumber::Term::ANSIColor
def uncolored(string = nil)
Returns an uncolored version of the string, that is all
def uncolored(string = nil) if block_given? yield.gsub(COLORED_REGEXP, '') elsif string string.gsub(COLORED_REGEXP, '') elsif respond_to?(:to_str) to_str.gsub(COLORED_REGEXP, '') else '' end end