Class: TextToImage

Inherits:
Object
  • Object
show all
Defined in:
lib/text_to_image.rb

Overview

Makes an image from the text given

Constant Summary collapse

DEFAULT_OPTS =
{
  format: 'png',
  height: '',
  width: 600
}.freeze

Instance Method Summary collapse

Constructor Details

#initialize(text, options = {}) ⇒ TextToImage

Returns a new instance of TextToImage.



15
16
17
18
# File 'lib/text_to_image.rb', line 15

def initialize(text, options = {})
  @text = text
  @options = DEFAULT_OPTS.merge options
end

Instance Method Details

#rawObject



20
21
22
# File 'lib/text_to_image.rb', line 20

def raw
  data
end