Sha256: 359c4f065dd79594462f2dd463ce7ac2b43936fc1a901d7ae9f927bd898731da

Contents?: true

Size: 523 Bytes

Versions: 2

Compression:

Stored size: 523 Bytes

Contents

# coding: utf-8

module Thinreports
  module Core::Shape

    class PageNumber::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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
thinreports-0.9.1 lib/thinreports/core/shape/page_number/interface.rb
thinreports-0.9.0 lib/thinreports/core/shape/page_number/interface.rb