Sha256: c926a5a91a3612d1cd2744829848f0ca5b821f1e6bc780f31ca089f69015815f

Contents?: true

Size: 734 Bytes

Versions: 1

Compression:

Stored size: 734 Bytes

Contents

# coding: utf-8

module ThinReports
  module Core::Shape
    
    # @private
    class List::PageState < Basic::Internal
      attr_reader :rows
      attr_accessor :height
      attr_accessor :header
      
      def initialize(*args)
        super(*args)
        
        @rows      = []
        @header    = nil
        @height    = 0
        @finalized = false
      end
      
      def finalized?
        @finalized
      end
      
      def finalized!
        @finalized = true
      end
      
      def type_of?(type_name)
        type_name == :list
      end
    end
    
    # Alias to List::PageState.
    # @see ThinReports::Core::Shape::List::PageState
    # @private
    List::Internal = List::PageState
    
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
thinreports-0.6.0.pre3 lib/thinreports/core/shape/list/page_state.rb