Sha256: 2fc0d75d5b83b07dca135d073fa6a1b9cec6261658f2443cebafcba506759a9e
Contents?: true
Size: 328 Bytes
Versions: 8
Compression:
Stored size: 328 Bytes
Contents
module AsciiMath class ColorTableBuilder def initialize() @table = {} end def add(*names, r, g, b) entry = { :r => r, :g => g, :b => b }.freeze names.each { |name| @table[name.freeze] = entry } end def build @table.dup.freeze end end end
Version data entries
8 entries across 8 versions & 2 rubygems