Sha256: bdc509b8578eee99f30ea7c0ff1d14b8effa39b33cd24c8fbead2bacae4ebc08
Contents?: true
Size: 353 Bytes
Versions: 1
Compression:
Stored size: 353 Bytes
Contents
require 'strscan' require 'term/ansicolor' require 'json_color/version' require 'json_color/parser.tab' module JsonColor DEFAULT_COLOR_MAP = { :key => :intense_blue, :string => :green, :null => :intense_black, } def self.colorize(src, color_map = nil) JsonColor::Parser.parse(src, color_map || DEFAULT_COLOR_MAP) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
json_color-0.1.0 | lib/json_color.rb |