Class: Vedeu::Colours::Background Private
- Inherits:
-
Translator
- Object
- Translator
- Vedeu::Colours::Background
- 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
- #named_codes ⇒ String private private
- #numbered_prefix ⇒ String private private
- #repository ⇒ Vedeu::Colours::Backgrounds private private
- #rgb_prefix ⇒ String private private
Constructor Details
This class inherits a constructor from Vedeu::Colours::Translator
Instance Method Details
#named_codes ⇒ String (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.
16 17 18 |
# File 'lib/vedeu/colours/background.rb', line 16 def named_codes Vedeu::EscapeSequences::Esc.background_codes[colour] end |
#numbered_prefix ⇒ String (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.
21 22 23 |
# File 'lib/vedeu/colours/background.rb', line 21 def numbered_prefix "\e[48;5;".freeze end |
#repository ⇒ Vedeu::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_prefix ⇒ String (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.
31 32 33 |
# File 'lib/vedeu/colours/background.rb', line 31 def rgb_prefix "\e[48;2;%s;%s;%sm".freeze end |