lib/protest/utils/colorful_output.rb
def print(string=nil, state=:normal)
        if string.nil? # calling IO#puts with nil is not the same as with no args
          stream.print
        else
          stream.print colorize(string, state)
        end
      end
# Print the string to whatever IO stream is defined in the method #stream
# using the correct color depending on the state passed.
Print the string to whatever IO stream is defined in the method #stream
using the correct color depending on the state passed.
Print the string to whatever IO stream is defined in the method #stream using the correct color depending on the state passed .
def print(string=nil, state=:normal)
        if string.nil? 
          stream.print
        else
          stream.print colorize(string, state)
        end
      end
def print ( string = nil , state = :normal ) if string . nil? stream . print else stream . print colorize ( string , state ) end end
Print the string to whatever IO stream is defined in the method #stream
using the correct color depending on the state passed.
Print the string to whatever IO stream is defined in the method #stream using the correct color depending on the state passed .
# calling IO#puts with nil is not the same as with no args
string
state