Class: TextToImage
- Inherits:
-
Object
- Object
- TextToImage
- 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
-
#initialize(text, options = {}) ⇒ TextToImage
constructor
A new instance of TextToImage.
- #raw ⇒ Object
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, = {}) @text = text @options = DEFAULT_OPTS.merge end |
Instance Method Details
#raw ⇒ Object
20 21 22 |
# File 'lib/text_to_image.rb', line 20 def raw data end |