class

RQRCode::QRCode

Inherits RQRCode::Export::SVG < RQRCode::Export::PNG < RQRCode::Export::HTML < RQRCode::Export::ANSI < Reference < Object

Constructors

new(data : String | RQRCodeCore::QRSegment | Array(RQRCodeCore::QRSegment) | Array(NamedTuple(data: String, mode: Symbol)) | Array(NamedTuple(data: String, mode: Symbol | Nil)) | Array(NamedTuple(data: String)), level : Symbol | Nil = nil, size : Int32 | Nil = nil, max_size : Int32 | Nil = nil, mode : Symbol | Nil = nil)
Source

Instance methods

modules

deprecated в оригинале

Source
qrcode
Source
to_s(dark : String = "x", light : String = " ", quiet_zone_size : Int32 = 0)

Returns a nicely readable and concise string representation of this object, typically intended for users.

This method should usually not be overridden. It delegates to #to_s(IO) which can be overridden for custom implementations.

Also see #inspect.

Source