Sha256: bd30db79b38ee6a4ad0acb66d45a069a7d4cea778e36a08470cce716b17e9e45

Contents?: true

Size: 641 Bytes

Versions: 7

Compression:

Stored size: 641 Bytes

Contents

# frozen_string_literal: true

module Thinreports
  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::Core::Shape::Base::Interface#init_internal
          def init_internal(parent, format)
            PageNumber::Internal.new(parent, format)
          end
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
thinreports-0.12.1 lib/thinreports/core/shape/page_number/interface.rb
thinreports-0.12.0 lib/thinreports/core/shape/page_number/interface.rb
thinreports-0.11.0 lib/thinreports/core/shape/page_number/interface.rb
thinreports-0.10.3 lib/thinreports/core/shape/page_number/interface.rb
thinreports-0.10.2 lib/thinreports/core/shape/page_number/interface.rb
thinreports-0.10.1 lib/thinreports/core/shape/page_number/interface.rb
thinreports-0.10.0 lib/thinreports/core/shape/page_number/interface.rb