File: outline_root.rb

package info (click to toggle)
ruby-pdf-core 0.9.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 356 kB
  • sloc: ruby: 1,978; makefile: 4
file content (17 lines) | stat: -rw-r--r-- 295 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# frozen_string_literal: true

module PDF
  module Core
    class OutlineRoot #:nodoc:
      attr_accessor :count, :first, :last

      def initialize
        @count = 0
      end

      def to_hash
        { Type: :Outlines, Count: count, First: first, Last: last }
      end
    end
  end
end