Class: Rainbow::Color::Indexed Private

Inherits:
Rainbow::Color 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

Named, RGB

Instance Attribute Summary collapse

Attributes inherited from Rainbow::Color

#ground

Instance Method Summary collapse

Methods inherited from Rainbow::Color

build, parse_hex_color

Constructor Details

#initialize(ground, num) ⇒ 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)
  • num (Integer)


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

def initialize(ground, num); end

Instance Attribute Details

#numInteger (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)


24
25
26
# File 'sorbet/rbi/annotations/rainbow.rbi', line 24

def num
  @num
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:



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

def codes; end