Sha256: 92e533cae0e306189e9ebbfd43fe4de5c50e95a96fdd476710fa734e9bed1749
Contents?: true
Size: 459 Bytes
Versions: 4
Compression:
Stored size: 459 Bytes
Contents
module CheapRedWine module Image class Params attr_reader :font, :color, :text, :features, :size, :margin def initialize(options = {}) @font = options.fetch(:font) @color = options.fetch(:color) { 'black' } @text = options.fetch(:text) { '' } @features = options.fetch(:features) { [] } @size = options.fetch(:size) { 20 } @margin = options.fetch(:margin) { 5 } end end end end
Version data entries
4 entries across 4 versions & 1 rubygems