🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

rqrencoder

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rqrencoder

0.1.2
Rubygems
Version published
Maintainers
1
Created
Source

RQREncoder

A Ruby gem for easy QR Code generation, using C for speed

Install

You'll need libqrencode installed on your machine.

Then, install with Rubygems:

gem install rqrencoder

Usage

Create an encoder, and encode away! The QRCode result contains a grid of bits indicating if a particular square is "dark" (true)

>> require 'rqrencoder'
=> true
>> encoder = RQREncoder::QREncoder.new
=> #<RQREncoder::QREncoder>
>> qrcode = encoder.encode("HELLO")
=> #<RQREncoder::QRCode:0x0000010203b7b0>
>> qrcode.modules[0][0]
=> true
>> qrcode.modules[1][5]
=> false

Author

Matt Robinson

FAQs

Package last updated on 31 Oct 2010

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts