Sha256: b5724f7ccec99b0fd0f0d3394b0e982601d0fe0debe5b6d4b0808678931a64e4
Contents?: true
Size: 312 Bytes
Versions: 3
Compression:
Stored size: 312 Bytes
Contents
module ANSI # Converts {CHART} and {SPECIAL_CHART} entries into constants. module Constants require 'ansi/chart' CHART.each do |name, code| const_set(name.to_s.upcase, "\e[#{code}m") end SPECIAL_CHART.each do |name, code| const_set(name.to_s.upcase, code) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ansi-1.4.1 | lib/ansi/constants.rb |
ansi-1.4.0 | lib/ansi/constants.rb |
ansi-1.3.0 | lib/ansi/constants.rb |