Sha256: eb3b9362db951a46a7554c00b8350e55e09fa26799d6815d0b76cc23615f1263

Contents?: true

Size: 631 Bytes

Versions: 8

Compression:

Stored size: 631 Bytes

Contents

module Vedeu

  module Colours

    # The class represents one half (the other, can be found at
    # {Vedeu::Colours::Foreground}) of a terminal colour escape
    # sequence.
    #
    # @api private
    #
    class Background < Vedeu::Colours::Translator

      private

      # @return [String]
      def prefix
        "\e[48;".freeze
      end

      # @return [String]
      def named_codes
        Vedeu::EscapeSequences::Esc.background_codes[colour]
      end

      # @return [Vedeu::Colours::Backgrounds]
      def repository
        Vedeu.background_colours
      end

    end # Background

  end # Colours

end # Vedeu

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
vedeu-0.7.4 lib/vedeu/colours/background.rb
vedeu-0.7.3 lib/vedeu/colours/background.rb
vedeu-0.7.2 lib/vedeu/colours/background.rb
vedeu-0.7.1 lib/vedeu/colours/background.rb
vedeu-0.7.0 lib/vedeu/colours/background.rb
vedeu-0.6.71 lib/vedeu/colours/background.rb
vedeu-0.6.70 lib/vedeu/colours/background.rb
vedeu-0.6.69 lib/vedeu/colours/background.rb