bin/sizes.rb
# Returns an uncolored version of the string, that is all
# ANSI-sequences are stripped from the string.
Returns an uncolored version of the string, that is all
ANSI-sequences are stripped from the string.
Returns an uncolored version of the string that is all ANSI - sequences are stripped from the string .
def uncolored(string = nil) 
      if block_given?
        yield.to_str.gsub(COLORED_REGEXP, '')
      elsif string.respond_to?(:to_str)
        string.to_str.gsub(COLORED_REGEXP, '')
      elsif respond_to?(:to_str)
        to_str.gsub(COLORED_REGEXP, '')
      else
        ''
      end
    end
def uncolored ( string = nil ) if block_given? yield . to_str . gsub ( COLORED_REGEXP , '' ) elsif string . respond_to? ( :to_str ) string . to_str . gsub ( COLORED_REGEXP , '' ) elsif respond_to? ( :to_str ) to_str . gsub ( COLORED_REGEXP , '' ) else '' end end
Returns an uncolored version of the string, that is all
ANSI-sequences are stripped from the string.
Returns an uncolored version of the string that is all ANSI - sequences are stripped from the string .
# :yields:
string