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.60.17 lib/origen/specs/exhibit.rb
origen-0.60.16 lib/origen/specs/exhibit.rb
origen-0.60.14 lib/origen/specs/exhibit.rb
origen-0.60.13 lib/origen/specs/exhibit.rb
origen-0.60.12 lib/origen/specs/exhibit.rb
origen-0.60.11 lib/origen/specs/exhibit.rb
origen-0.60.10 lib/origen/specs/exhibit.rb
origen-0.60.9 lib/origen/specs/exhibit.rb
origen-0.60.8 lib/origen/specs/exhibit.rb
origen-0.60.7 lib/origen/specs/exhibit.rb
origen-0.60.6 lib/origen/specs/exhibit.rb
origen-0.60.5 lib/origen/specs/exhibit.rb
origen-0.60.4 lib/origen/specs/exhibit.rb
origen-0.60.3 lib/origen/specs/exhibit.rb
origen-0.60.2 lib/origen/specs/exhibit.rb
origen-0.60.1 lib/origen/specs/exhibit.rb
origen-0.60.0 lib/origen/specs/exhibit.rb
origen-0.59.8 lib/origen/specs/exhibit.rb
origen-0.59.7 lib/origen/specs/exhibit.rb
origen-0.59.6 lib/origen/specs/exhibit.rb