Module: RQRCodePNG::QRCodeExtensions

Defined in:
lib/rqrcode_png/qrcode_extensions.rb

Instance Method Summary collapse

Instance Method Details

#to_img(bg_color = ChunkyPNG::Color::WHITE) ⇒ Object

This method returns a 33x33 .png of the code



4
5
6
# 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