Class: Prawn::PaddedBox

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

Overview

Bounding box with padding

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(document, parent, point, options = {}) ⇒ PaddedBox

Returns a new instance of PaddedBox.



45
46
47
48
49
# File 'lib/prawn/swiss_qr_bill/padded_box.rb', line 45

def initialize(document, parent, point, options = {})
  super

  @padding = options[:padding] || 0
end

Instance Attribute Details

#paddingObject (readonly)

Returns the value of attribute padding.



43
44
45
# File 'lib/prawn/swiss_qr_bill/padded_box.rb', line 43

def padding
  @padding
end