Sha256: 9d56f30c06538625c8fbcc52456ba09a36638ca468fa601f6a67e71996fac64a
Contents?: true
Size: 605 Bytes
Versions: 6
Compression:
Stored size: 605 Bytes
Contents
# frozen_string_literal: true # # Copyright (c) 2019-present, Blue Marble Payroll, LLC # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. # require_relative 'renderer' module Proforma class PrawnRenderer # This class understands how to ender a Proforma::Modeling::Separator component. class SeparatorRenderer < Renderer WIDTH = 0.5 private_constant :WIDTH def render(_separator) pdf.line_width(WIDTH) pdf.stroke_horizontal_rule pdf.move_down(5) end end end end
Version data entries
6 entries across 6 versions & 1 rubygems