Sha256: 13c3428799c2b2742a63576166ada8d605e8123dfe23e38e6973c289572180e5

Contents?: true

Size: 725 Bytes

Versions: 5

Compression:

Stored size: 725 Bytes

Contents

# frozen_string_literal: true

module Thinreports
  module BasicReport
    module Core
      module Shape
        module PageNumber
          class Interface < Basic::Interface
            internal_delegators :reset_format

            def format(*args)
              if args.empty?
                internal.read_format
              else
                internal.write_format(args.first)
                self
              end
            end

            private

            # @see Thinreports::BasicReport::Core::Shape::Base::Interface#init_internal
            def init_internal(parent, format)
              PageNumber::Internal.new(parent, format)
            end
          end
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
thinreports-0.14.2 lib/thinreports/basic_report/core/shape/page_number/interface.rb
thinreports-0.14.1 lib/thinreports/basic_report/core/shape/page_number/interface.rb
thinreports-0.14.0 lib/thinreports/basic_report/core/shape/page_number/interface.rb
thinreports-0.13.1 lib/thinreports/basic_report/core/shape/page_number/interface.rb
thinreports-0.13.0 lib/thinreports/basic_report/core/shape/page_number/interface.rb