Class: Rainbow::Color::RGB Private

Inherits:
Indexed 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

Attributes inherited from Indexed

#num

Attributes inherited from Rainbow::Color

#ground

Class Method Summary collapse

Instance Method Summary collapse

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

#bInteger (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

#gInteger (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

#rInteger (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:

Returns:

  • (Integer)


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

def self.to_ansi_domain(value); end

Instance Method Details

#codesArray<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:



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

def codes; end