Method: Gruff::Base#to_blob
- Defined in:
- lib/gruff/base.rb
#to_blob(fileformat = 'PNG') ⇒ Object
Return the graph as a rendered binary blob.
468 469 470 471 472 473 |
# File 'lib/gruff/base.rb', line 468 def to_blob(fileformat='PNG') draw() return @base_image.to_blob do self.format = fileformat end end |