Sha256: d3a74f62f20ae2dd020fa91131319b66e47b0ea7252d10b3f76fd58ec5dfe6f2
Contents?: true
Size: 357 Bytes
Versions: 3
Compression:
Stored size: 357 Bytes
Contents
module Nineteen module Eighty module Two module Formats class Text def self.format text, options = {} on = options.fetch(:on, '1') off = options.fetch(:off, '0') Spectrum[text].map { |t| t.join }.join("\n").gsub('0', off).gsub('1', on) end end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems