Module: Bovem::ConsoleMethods::StyleHandling

Extended by:
ActiveSupport::Concern
Included in:
Bovem::Console
Defined in:
lib/bovem/console.rb

Overview

Methods for handling styles in the terminal.

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#replace_markers(message, plain = false) ⇒ String

Replaces colors markers in a string.

Parameters:

  • message (String)

    The message to analyze.

  • plain (Boolean) (defaults to: false)

    If ignore (cleanify) color markers into the message.

Returns:

  • (String)

    The replaced message.

See Also:



106
107
108
# File 'lib/bovem/console.rb', line 106

def replace_markers(message, plain = false)
  Bovem::Console.replace_markers(message, plain)
end