Sha256: 50ffefa47b2b4fb4916745d2bcde6546cf8a10d11ff8b8264c481cfdc54fdcb1

Contents?: true

Size: 1.32 KB

Versions: 4

Compression:

Stored size: 1.32 KB

Contents

# coding: utf-8

module ThinReports
  module Core::Shape
    
    class List::Events < Core::Events
      def initialize
        super(:page_footer_insert,
              :footer_insert,
              :page_finalize)
      end
      
      class PageEvent < Event
        # @return [ThinReports::Core::Page]
        attr_reader :page
        
        # @param type (see ThinReports::Core::Events::Event#initialize)
        # @param [ThinReports::Core::Shape::List::Page] target
        # @param [ThinReports::Core::Page] page
        def initialize(type, target, page)
          super(type, target)
          @page = page
        end
        
        # @return [ThinReports::Core::Shape::List::Page]
        alias_method :list, :target
      end
      
      class SectionEvent < Event
        # @return [ThinReports::Core::Shape::List::Store]
        attr_reader :store
        
        # @param type (see ThinReports::Core::Events::Event#initialize)
        # @param [ThinReports::Core::Shape::List::SectionInterface] target
        # @param [ThinReports::Core::Shape::List::Store] store
        def initialize(type, target, store)
          super(type, target)
          @store = store
        end
        
        # @return [ThinReports::Core::Shape::List::SectionInterface]
        alias_method :section, :target
      end
    end
    
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
thinreports-0.7.7 lib/thinreports/core/shape/list/events.rb
thinreports-0.7.6 lib/thinreports/core/shape/list/events.rb
thinreports-0.7.5 lib/thinreports/core/shape/list/events.rb
thinreports-0.7.0 lib/thinreports/core/shape/list/events.rb