Sha256: 8e9b7f15fade3256fab62a3d40c9f2fa5da86ad7b6db9bde0713f363c092c8db

Contents?: true

Size: 574 Bytes

Versions: 2

Compression:

Stored size: 574 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

      def render(_separator)
        pdf.line_width(WIDTH)
        pdf.stroke_horizontal_rule
        pdf.move_down(5)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
proforma-prawn-renderer-1.0.0.pre.alpha.1 lib/proforma/prawn_renderer/separator_renderer.rb
proforma-prawn-renderer-1.0.0.pre.alpha lib/proforma/prawn_renderer/separator_renderer.rb