Method: Bogo::Ui#fatal

Defined in:
lib/bogo/ui.rb

#fatal(string, *args) ⇒ String

Format fatal string

Parameters:

  • string (String)

Returns:

  • (String)


97
98
99
100
101
# File 'lib/bogo/ui.rb', line 97

def fatal(string, *args)
  output_method = args.include?(:nonewline) ? :print : :puts
  self.send(output_method, "#{color('[FATAL]:', :red, :bold)} #{string}")
  string
end