Sha256: d3c0c24d72befeb84eae7d17744f01dfcd0aeda2054495c4d29280faca0492c0
Contents?: true
Size: 414 Bytes
Versions: 2
Compression:
Stored size: 414 Bytes
Contents
# -*- encoding : utf-8 -*- require 'megingiard/hash_wrapper' module Megingiard # The given ANSI escape sequence was not valid class InvalidAnsiColorCode < ArgumentError end ANSI_COLOR_MAP = { red: 1, green: 2, yellow: 3, blue: 4, magenta: 5, cyan: 6, white: 7 } # Color codes for ANSI color names ANSI_COLORS = HashWrapper.new(ANSI_COLOR_MAP, InvalidAnsiColorCode) end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
megingiard-0.1.0 | lib/megingiard/ansi_colors.rb |
megingiard-0.0.1 | lib/megingiard/ansi_colors.rb |