Sha256: e1bbe983f298bd12435857ee3f18530baae8c33e13d5325c7cf6a1d26cc1abb0

Contents?: true

Size: 519 Bytes

Versions: 1

Compression:

Stored size: 519 Bytes

Contents

module Rocx
  module Properties
    class LineNumbering < ComplexProperty
      tag :lnNumType

      attribute :count_by, expects: :integer
      attribute :distance, expects: :positive_integer
      attribute :restart, expects: :valid_line_numbering_restart
      attribute :start, expects: :integer

      VALID_LINE_NUMBERING_RESTARTS = %i(continuous newPage newSection)

    private

      def valid_line_numbering_restart(value)
        valid_in? value, VALID_LINE_NUMBERING_RESTARTS
      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rocx-0.7.0 lib/rocx/properties/line_numbering.rb