Class: Rainbow::Wrapper Private

Inherits:
Object show all
Defined in:
sorbet/rbi/annotations/rainbow.rbi

This class is part of a private API. This class may only be used in the Homebrew/brew repository. Third parties should avoid using this class if possible, as it may be removed or changed without warning.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(enabled = true) ⇒ void

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Parameters:

  • enabled (Boolean) (defaults to: true)


257
# File 'sorbet/rbi/annotations/rainbow.rbi', line 257

def initialize(enabled = true); end

Instance Attribute Details

#enabledBoolean

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Returns:

  • (Boolean)


254
255
256
# File 'sorbet/rbi/annotations/rainbow.rbi', line 254

def enabled
  @enabled
end

Instance Method Details

#wrap(string) ⇒ Rainbow::Presenter, Rainbow::NullPresenter

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Parameters:

Returns:



260
# File 'sorbet/rbi/annotations/rainbow.rbi', line 260

def wrap(string); end