Sha256: 7bc7987eca1a33f6ef07834ef10bf334187874e99dc28b1b28adf7514b22c4cd
Contents?: true
Size: 568 Bytes
Versions: 6
Compression:
Stored size: 568 Bytes
Contents
module JazzFingers module CodeRay autoload :ESCAPED_COLORS, 'jazz_fingers/coderay/escaped_colors' autoload :UNESCAPED_COLORS, 'jazz_fingers/coderay/unescaped_colors' def self.setup! ::CodeRay.scan("example", :ruby).term if ::CodeRay::VERSION >= '1.1.0' ESCAPED_COLORS.each do |key, value| ::CodeRay::Encoders::Terminal::TOKEN_COLORS[key] = value end else UNESCAPED_COLORS.each do |key, value| ::CodeRay::Encoders::Terminal::TOKEN_COLORS[key] = value end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems