Sha256: 7710ab2b61b52426bc4f509558f83f661955ec062b122d41203caf4a92b408ca
Contents?: true
Size: 590 Bytes
Versions: 1
Compression:
Stored size: 590 Bytes
Contents
module Vedeu class Foreground < ColourTranslator private # @api private # @return [String] def named ["\e[", foreground_codes[colour], "m"].join end # @api private # @return [String] def numbered ["\e[38;5;", css_to_numbered, "m"].join end # @api private # @return [String] def rgb if Configuration.colour_mode == 16777216 sprintf("\e[38;2;%s;%s;%sm", *css_to_rgb) else numbered end end # @api private # @return [Hash] def foreground_codes codes end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vedeu-0.1.18 | lib/vedeu/models/attributes/foreground.rb |