Spec-Zone.ru › Homebrew

Class: Rainbow::Color::RGB Private

Inherits:
Indexed
  • Object
  • Rainbow::Color
  • Indexed
  • Rainbow::Color::RGB
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.

Direct Known Subclasses

X11Named

Instance Attribute Summary collapse

  • #b ⇒ Integer readonly private
  • #g ⇒ Integer readonly private
  • #r ⇒ Integer readonly private

Attributes inherited from Indexed

#num

Attributes inherited from Rainbow::Color

#ground

Class Method Summary collapse

  • .to_ansi_domain(value) ⇒ Integer private

Instance Method Summary collapse

  • #codes ⇒ Array<Integer> private
  • #initialize(ground, *values) ⇒ void constructor private

Methods inherited from Rainbow::Color

build, parse_hex_color

Constructor Details

#initialize(ground, *values) ⇒ 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:

  • ground (Symbol)
  • values (Integer)


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

def initialize(ground, *values); end

Instance Attribute Details

#b ⇒ Integer (readonly)

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:

  • (Integer)


48
49
50
# File 'sorbet/rbi/annotations/rainbow.rbi', line 48

def b
  @b
end

#g ⇒ Integer (readonly)

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:

  • (Integer)


48
49
50
# File 'sorbet/rbi/annotations/rainbow.rbi', line 48

def g
  @g
end

#r ⇒ Integer (readonly)

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:

  • (Integer)


48
49
50
# File 'sorbet/rbi/annotations/rainbow.rbi', line 48

def r
  @r
end

Class Method Details

.to_ansi_domain(value) ⇒ Integer

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:

  • value (Numeric)

Returns:

  • (Integer)


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

def self.to_ansi_domain(value); end

Instance Method Details

#codes ⇒ Array<Integer>

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:

  • (Array<Integer>)


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

def codes; end

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

Spec-Zone.ru

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