Method: Coveralls::Output#print
- Defined in:
- lib/coveralls/output.rb
#print(string, options = {}) ⇒ Object
Public: Passes .format to Kernel#print
string - the text to be formatted options - The hash of options used for formatting the text:
:color - The color to be passed as a method to
Term::ANSIColor
Example
Coveralls::Output.print("Hello World!", :color => "underline")
Returns nil.
105 106 107 108 |
# File 'lib/coveralls/output.rb', line 105 def print(string, = {}) return if silent? ([:output] || output).print self.format(string, ) end |