class Sesc::Exporter::Painter

Attributes

background[RW]
color[RW]
text[RW]

Public Class Methods

new(text, options = {}) click to toggle source
# File lib/sesc/exporter/painter.rb, line 8
def initialize(text, options = {})
  self.text       = text
  self.color      = options.fetch(:color, :light_white)
  self.background = options.fetch(:background, :black)
end

Public Instance Methods

default() click to toggle source
# File lib/sesc/exporter/painter.rb, line 14
def default
  text.colorize(color: color, background: background)
end