Sha256: 7a53dcc47b69132be22fcaff825ac27f5a3edcc985fdafded015bfadfd2e51d6
Contents?: true
Size: 376 Bytes
Versions: 1
Compression:
Stored size: 376 Bytes
Contents
# frozen_string_literal: true module Prawn module ManualBuilder class Section def initialize(title) @title = title @content = [] end attr_reader :title, :content def render(doc) # Do nothing end def page_number content.find { _1.respond_to?(:page_number) }&.page_number end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
prawn-manual_builder-0.4.0 | lib/prawn/manual_builder/section.rb |