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

- (String) replace_markers(message, plain = false)

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:

  • replace_markers


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

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