Class: Prawn::PaddedBox
- Inherits:
-
Document::BoundingBox
- Object
- Document::BoundingBox
- Prawn::PaddedBox
- Defined in:
- lib/prawn/swiss_qr_bill/padded_box.rb
Overview
Bounding box with padding
Instance Attribute Summary collapse
-
#padding ⇒ Object
readonly
Returns the value of attribute padding.
Instance Method Summary collapse
-
#initialize(document, parent, point, options = {}) ⇒ PaddedBox
constructor
A new instance of PaddedBox.
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, = {}) super @padding = [:padding] || 0 end |
Instance Attribute Details
#padding ⇒ Object (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 |