せっかくなので、SVGで出力するクラスを作った。 空白と"■"で出力してみても、携帯はちゃんと読んでくれた…(最後の puts SVG_QRcode.new.to_text('testdata') ) require 'qrcode' class SVG_QRcode < Qrcode attr_accessor :true_color, :false_color, :size, :x, :y, :quiet_zone def initialize () super @true_color = 'black' @false_color = 'white' @size = 5 @x, @y = 20, 20 @quiet_zone = true end def to_a (text) self.make_qrcode(text).split.map {|it| it.scan(/./).ma