Sha256: 08deea8006f884edc3fa6f97fefe56ee177b41948f72177d2b80320baa3f6ade

Contents?: true

Size: 545 Bytes

Versions: 4

Compression:

Stored size: 545 Bytes

Contents

# coding: utf-8

module ThinReports
  module Core::Shape
    
    # @private
    class Manager::Format < Core::Format::Base
      # @return [Symbol, Integer]
      attr_reader :identifier
      
      config_reader :layout => %w( svg )
      
      def initialize(config, id = nil, &block)
        super(config, &block)
        @identifier = id || self.object_id
      end
      
      def find_shape(id)
        shapes[id]
      end
      
      def shapes
        @shapes ||= ThinReports::Core::OrderedHash.new
      end
    end
    
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
thinreports-0.7.7 lib/thinreports/core/shape/manager/format.rb
thinreports-0.7.6 lib/thinreports/core/shape/manager/format.rb
thinreports-0.7.5 lib/thinreports/core/shape/manager/format.rb
thinreports-0.7.0 lib/thinreports/core/shape/manager/format.rb