Class: RQRCode::QRCode
- Inherits:
-
Object
- Object
- RQRCode::QRCode
- Extended by:
- Forwardable
- Includes:
- Export::HTML, Export::SVG
- Defined in:
- lib/rqrcode/qrcode/qrcode.rb
Constant Summary
Constants included from Export::SVG
Export::SVG::DEFAULT_SVG_ATTRIBUTES, Export::SVG::SVG_PATH_COMMANDS
Constants included from Export::HTML
Export::HTML::TABLE_CLOSE, Export::HTML::TABLE_OPEN, Export::HTML::TD_BLACK, Export::HTML::TD_WHITE, Export::HTML::TR_CLOSE, Export::HTML::TR_OPEN
Instance Attribute Summary collapse
-
#qrcode ⇒ Object
readonly
Returns the value of attribute qrcode.
Instance Method Summary collapse
-
#initialize(string, *args) ⇒ QRCode
constructor
A new instance of QRCode.
Methods included from Export::SVG
Methods included from Export::HTML
Constructor Details
#initialize(string, *args) ⇒ QRCode
Returns a new instance of QRCode.
14 15 16 |
# File 'lib/rqrcode/qrcode/qrcode.rb', line 14 def initialize(string, *args) @qrcode = RQRCodeCore::QRCode.new(string, *args) end |
Instance Attribute Details
#qrcode ⇒ Object (readonly)
Returns the value of attribute qrcode.
12 13 14 |
# File 'lib/rqrcode/qrcode/qrcode.rb', line 12 def qrcode @qrcode end |