Module: Prawn::QRCode::Table

Defined in:
lib/prawn/qrcode/table.rb,
lib/prawn/qrcode/table/cell.rb

Defined Under Namespace

Classes: Cell

Instance Method Summary collapse

Instance Method Details

#make_qrcode_cell(**options) ⇒ Prawn::QRCode::Table::Cell

create a Prawn::Table::Cell instacne that renders QR codes as table cell The table cell will create a QRCode and Renderer on demand, all necessary options will be passed through

Parameters:

  • options (Hash)

    for creating table cell

  • [String] (Hash)

    a customizable set of options

  • [RQRCode::QRCode] (Hash)

    a customizable set of options

  • [Prawn::QRCode::Renderer] (Hash)

    a customizable set of options

Returns:

See Also:

Since:

  • 0.5.0



21
22
23
# File 'lib/prawn/qrcode/table.rb', line 21

def make_qrcode_cell(**options)
  Prawn::QRCode::Table::Cell.new(self, [0, cursor], options)
end