module RQRCodePNG::QRCodeExtensions
Public Instance Methods
to_img(bg_color = ChunkyPNG::Color::WHITE)
click to toggle source
This method returns a 33x33 .png of the code
# File lib/rqrcode_png/qrcode_extensions.rb, line 4 def to_img(bg_color = ChunkyPNG::Color::WHITE) return Image.new(self).render(bg_color) end