Class: Vedeu::Colours::Background Private

Inherits:
Translator show all
Defined in:
lib/vedeu/colours/background.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

The class represents one half (the other, can be found at Foreground) of a terminal colour escape sequence.

Instance Method Summary collapse

Constructor Details

This class inherits a constructor from Vedeu::Colours::Translator

Instance Method Details

#named_codesString (private)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

  • (String)


16
17
18
# File 'lib/vedeu/colours/background.rb', line 16

def named_codes
  Vedeu::EscapeSequences::Esc.background_codes[colour]
end

#numbered_prefixString (private)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

  • (String)


21
22
23
# File 'lib/vedeu/colours/background.rb', line 21

def numbered_prefix
  "\e[48;5;".freeze
end

#repositoryVedeu::Colours::Backgrounds (private)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



26
27
28
# File 'lib/vedeu/colours/background.rb', line 26

def repository
  Vedeu.background_colours
end

#rgb_prefixString (private)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

  • (String)


31
32
33
# File 'lib/vedeu/colours/background.rb', line 31

def rgb_prefix
  "\e[48;2;%s;%s;%sm".freeze
end