Module: Sugpoko::Helpers::Prawn
- Included in:
- Component
- Defined in:
- lib/sugpoko/helpers/prawn.rb
Instance Method Summary collapse
Instance Method Details
#bounding_box(options = {}) ⇒ Object
4 5 6 7 8 9 |
# File 'lib/sugpoko/helpers/prawn.rb', line 4 def bounding_box( = {}) pos, = () pdf.bounding_box pos, do yield end end |
#build_bounding_box_options(options) ⇒ Object
11 12 13 14 15 16 17 18 19 |
# File 'lib/sugpoko/helpers/prawn.rb', line 11 def () pos = .fetch(:position) { position } = { width: width, height: height } .merge! return pos, end |