Class: Prawn::Document

Inherits:
Object
  • Object
show all
Defined in:
lib/prawn/swiss_qr_bill/padded_box.rb

Overview

Attach padded_box to Prawn

padded_box(point, options = {}, &block)

NOTE: not in use, not working properly. it is not easy to stroke the outer box.

was an idea for DebugSection, maybe deprecate/remove or make it work later.

:nocov:

Instance Method Summary collapse

Instance Method Details

#padded_box(point, *args, &block) ⇒ Object



13
14
15
16
17
18
# File 'lib/prawn/swiss_qr_bill/padded_box.rb', line 13

def padded_box(point, *args, &block)
  init_padded_box(block) do |parent_box|
    point = map_to_absolute(point)
    @bounding_box = PaddedBox.new(self, parent_box, point, *args)
  end
end