Sha256: c98bd7617201589a8aa5c94278cf065f3c52860a89706fd2f2030ed4b8c8a125
Contents?: true
Size: 490 Bytes
Versions: 43
Compression:
Stored size: 490 Bytes
Contents
# frozen_string_literal: true module Asciidoctor module PDF class SectionInfoByPage def initialize title_method @table = {} @title_method = title_method end def []= pgnum, val if ::Asciidoctor::Section === val @table[pgnum] = { title: val.send(*@title_method), numeral: val.numeral } else @table[pgnum] = { title: val } end end def [] pgnum @table[pgnum] end end end end
Version data entries
43 entries across 43 versions & 1 rubygems