Spec-Zone.ru › Homebrew

Class: Rainbow::Wrapper Private

Inherits:
Object
  • Object
  • Rainbow::Wrapper
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

  • #enabled ⇒ Boolean private

Instance Method Summary collapse

  • #initialize(enabled = true) ⇒ void constructor private
  • #wrap(string) ⇒ Rainbow::Presenter, Rainbow::NullPresenter private

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

#enabled ⇒ Boolean

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:

  • string (String)

Returns:

  • (Rainbow::Presenter, Rainbow::NullPresenter)


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

def wrap(string); end

© 2009–present Homebrew contributors
Licensed under the BSD 2-Clause License.
https://docs.brew.sh/rubydoc/Rainbow/Wrapper.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API