Sha256: 787ad579cf390bb4de2c30551efd81456fc73df2e70a1e41ffec57c4e9c3e2da

Contents?: true

Size: 644 Bytes

Versions: 3

Compression:

Stored size: 644 Bytes

Contents

# coding: utf-8

module Thinreports
  module Layout

    # @deprecated This class will be removed in the next major version.
    class Configuration
      include Core::Shape::Manager::Target

      # @param [Thinreports::Layout::Base] layout
      def initialize(layout)
        initialize_manager(layout.format) do |f|
          Core::Shape::Configuration(f.type).new
        end
      end

      # @param [String, Symbol] shape_id
      # @return [Object, nil]
      def activate(shape_id)
        (config = manager.shapes[shape_id.to_sym]) && config.copy
      end

      def values
        raise NoMethodError
      end
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
thinreports-0.8.2 lib/thinreports/layout/configuration.rb
thinreports-0.8.1 lib/thinreports/layout/configuration.rb
thinreports-0.8.0 lib/thinreports/layout/configuration.rb