Sha256: 30b70cceabe1b34bed712d8cae3c81998a8b343914c68ab9e53deb4cba885844

Contents?: true

Size: 511 Bytes

Versions: 2

Compression:

Stored size: 511 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 SpacerRenderer < Renderer
      AMOUNT = 15

      def render(_separator)
        pdf.move_down(AMOUNT)
      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/spacer_renderer.rb
proforma-prawn-renderer-1.0.0.pre.alpha lib/proforma/prawn_renderer/spacer_renderer.rb