Sha256: 45f42586bc1196be6daaab980f8e9972ee48b259940ed7e82f11792340e8afa0

Contents?: true

Size: 555 Bytes

Versions: 1

Compression:

Stored size: 555 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 && shapes[id]
      end
      
      def shapes
        @shapes ||= ThinReports::Core::OrderedHash.new
      end
    end
    
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
thinreports-0.6.0.pre3 lib/thinreports/core/shape/manager/format.rb