Sha256: 4e9a9d8d6f788f0fd10a02d20c6fba1d6bab11ae0967878f5470f89b33cda020

Contents?: true

Size: 1.76 KB

Versions: 169

Compression:

Stored size: 1.76 KB

Contents

module Origen
  module Specs
    # This class is used to store spec exhibit information used to document IP
    class Exhibit
      # ID for the exhibit.  This allows the exhibit to reference easier
      attr_accessor :id

      # Type of exhibit.  Currently only :fig is supported.  In the future, this could be :topic or :table or anything else
      attr_accessor :type

      # Title for the Exhibit.
      attr_accessor :title

      # Description for the Exhibit
      attr_accessor :description

      # Reference link
      attr_accessor :reference

      # Markup needed for the exhibit
      attr_accessor :markup

      # Do we include the exhibit in this block
      attr_accessor :include_exhibit

      # Block ID that this exhibit is being used in.
      attr_accessor :block_id

      # Title Override.  Allows for the SoC to override the title so that it makes more sense
      attr_accessor :title_override

      # Reference Override.  This allows for the SoC to use a different figure (e.g. Power Supplies are different)
      attr_accessor :reference_override

      # Description Override.  This allows for the SoC to use a different description
      attr_accessor :description_override

      def initialize(id, type, overrides, options = {})
        @id = id
        @type = type
        @title = options[:title]
        @description = options[:description]
        @reference = options[:reference]
        @title_override = overrides[:title]
        @reference_override = overrides[:reference]
        @description_override = overrides[:description]
        @markup = options[:markup]
        @include_exhibit = true
        @include_exhibit = options[:include_exhibit] unless options[:include_exhibit].nil?
        @block_id = options[:block_id]
      end
    end
  end
end

Version data entries

169 entries across 169 versions & 1 rubygems

Version Path
origen-0.33.0 lib/origen/specs/exhibit.rb
origen-0.32.1 lib/origen/specs/exhibit.rb
origen-0.32.0 lib/origen/specs/exhibit.rb
origen-0.31.0 lib/origen/specs/exhibit.rb
origen-0.30.0 lib/origen/specs/exhibit.rb
origen-0.29.0 lib/origen/specs/exhibit.rb
origen-0.28.2 lib/origen/specs/exhibit.rb
origen-0.28.1 lib/origen/specs/exhibit.rb
origen-0.28.0 lib/origen/specs/exhibit.rb
origen-0.27.0 lib/origen/specs/exhibit.rb
origen-0.26.0 lib/origen/specs/exhibit.rb
origen-0.25.1 lib/origen/specs/exhibit.rb
origen-0.25.0 lib/origen/specs/exhibit.rb
origen-0.24.0 lib/origen/specs/exhibit.rb
origen-0.23.0 lib/origen/specs/exhibit.rb
origen-0.22.0 lib/origen/specs/exhibit.rb
origen-0.21.0 lib/origen/specs/exhibit.rb
origen-0.20.3 lib/origen/specs/exhibit.rb
origen-0.20.2 lib/origen/specs/exhibit.rb
origen-0.20.1 lib/origen/specs/exhibit.rb