Sha256: 9001f6151635d5eafc2cb87267c61e854030eb54029505a7dc38b4a408229c94

Contents?: true

Size: 1.8 KB

Versions: 127

Compression:

Stored size: 1.8 KB

Contents

module Origen
  module Specs
    # This class is used to store spec note information used to document IP
    class Note
      # id is the id for the note.  The goal for the id is to allow multiple specs to reference one note.
      # spec.notes = [id1, id2, id3]
      # spec1.notes = [id1, id4, id5]
      attr_accessor :id

      # Type should be :ac or :dc, but this might have been phased out.
      #  TODO:  Check to see if :type has been deprecated or is still needed
      attr_accessor :type

      # Mode will match the mode that this note belongs to.
      #  TODO:  Check to see if :mode has been deprecated or is still needed
      attr_accessor :mode

      # Audience should be :ac or :dc, but this might have been phased out.
      #  TODO:  Check to see if :type has been deprecated or is still needed
      attr_accessor :audience

      # Plain text of the note.  No Mark-up allowed in this field.
      attr_accessor :text

      # Note Number.  Optional.  If not set, then DITA will make the number
      attr_accessor :number

      # Markup of the text field.  Currently markup has been tested with
      #
      # * DITA
      # * XML
      # * HTML
      #
      # Need to test the following markup
      #
      # * Markdown
      attr_accessor :markup

      # Internal comment that could be used to know why the note was needed. Think of this as a breadcrumb
      # to find out about more information on the note.
      attr_accessor :internal_comment

      # Initialize the class
      def initialize(id, type, options = {})
        @id = id
        @type = type
        @mode = options[:mode]
        @audience = options[:audience]
        @text = options[:text]
        @markup = options[:markup]
        @internal_comment = options[:internal_comment]
        @number = options[:number]
      end
    end
  end
end

Version data entries

127 entries across 127 versions & 1 rubygems

Version Path
origen-0.60.19 lib/origen/specs/note.rb
origen-0.60.18 lib/origen/specs/note.rb
origen-0.60.17 lib/origen/specs/note.rb
origen-0.60.16 lib/origen/specs/note.rb
origen-0.60.14 lib/origen/specs/note.rb
origen-0.60.13 lib/origen/specs/note.rb
origen-0.60.12 lib/origen/specs/note.rb
origen-0.60.11 lib/origen/specs/note.rb
origen-0.60.10 lib/origen/specs/note.rb
origen-0.60.9 lib/origen/specs/note.rb
origen-0.60.8 lib/origen/specs/note.rb
origen-0.60.7 lib/origen/specs/note.rb
origen-0.60.6 lib/origen/specs/note.rb
origen-0.60.5 lib/origen/specs/note.rb
origen-0.60.4 lib/origen/specs/note.rb
origen-0.60.3 lib/origen/specs/note.rb
origen-0.60.2 lib/origen/specs/note.rb
origen-0.60.1 lib/origen/specs/note.rb
origen-0.60.0 lib/origen/specs/note.rb
origen-0.59.8 lib/origen/specs/note.rb