class Prawn::SVG::Interface

Public Instance Methods

resize(opts = {}) click to toggle source
# File lib/asciidoctor/pdf/ext/prawn-svg/interface.rb, line 4
def resize opts = {}
  sizing = document.sizing
  sizing.requested_width = opts[:width]
  sizing.requested_height = opts[:height]
  sizing.calculate
end