Class: Origen::Specs::Spec_Features
- Defined in:
- lib/origen/specs/spec_features.rb
Overview
Ruby Data Class that contains Creation Information for the IP Block
Instance Attribute Summary collapse
-
#applicable_devices ⇒ Object
Applicable Devices for this feature.
-
#audience ⇒ Object
Intended Audience for this feature.
-
#feature_ref ⇒ Object
Feature Reference To be used for sub-feature so that they can be linked easily.
-
#id ⇒ Object
This is the Id of the Feature that will be referenced Future goal is to be able to tie this ID to a specification in a Product Requirements Document.
-
#internal_comments ⇒ Object
Internal comments about this feature.
-
#text ⇒ Object
The actual text of the feature.
-
#type ⇒ Object
- Feature Type Current supported types are intro
- Intro Paragraph for the Features Page feature
- Main Feature (e.g. Additional peripherals include) subfeature
-
Sub Feature that will be a sub-bullet to feature.
Instance Method Summary collapse
-
#initialize(id, attrs, applicable_devices, text, internal_comments) ⇒ Spec_Features
constructor
Initialize the Feature to be used.
Constructor Details
#initialize(id, attrs, applicable_devices, text, internal_comments) ⇒ Spec_Features
Initialize the Feature to be used
35 36 37 38 39 40 41 42 43 |
# File 'lib/origen/specs/spec_features.rb', line 35 def initialize(id, attrs, applicable_devices, text, internal_comments) @id = id @type = attrs[:type] @feature_ref = attrs[:feature_ref] @audience = attrs[:audience] @applicable_devices = applicable_devices @text = text @internal_comments = internal_comments end |
Instance Attribute Details
#applicable_devices ⇒ Object
Applicable Devices for this feature. This allows for multiple devices from one piece of silicon
If this feature is on Part B and Part D, then applicable devices will include Part B and Part D, but no other parts
22 23 24 |
# File 'lib/origen/specs/spec_features.rb', line 22 def applicable_devices @applicable_devices end |
#audience ⇒ Object
Intended Audience for this feature. Internal or External?
32 33 34 |
# File 'lib/origen/specs/spec_features.rb', line 32 def audience @audience end |
#feature_ref ⇒ Object
Feature Reference
To be used for sub-feature so that they can be linked easily
18 19 20 |
# File 'lib/origen/specs/spec_features.rb', line 18 def feature_ref @feature_ref end |
#id ⇒ Object
This is the Id of the Feature that will be referenced Future goal is to be able to tie this ID to a specification in a Product Requirements Document
7 8 9 |
# File 'lib/origen/specs/spec_features.rb', line 7 def id @id end |
#internal_comments ⇒ Object
Internal comments about this feature. Why was this feature included here? Any changes from the Product Requirements Document
29 30 31 |
# File 'lib/origen/specs/spec_features.rb', line 29 def internal_comments @internal_comments end |
#text ⇒ Object
The actual text of the feature
25 26 27 |
# File 'lib/origen/specs/spec_features.rb', line 25 def text @text end |
#type ⇒ Object
Feature Type Current supported types are
intro :: Intro Paragraph for the Features Page
feature :: Main Feature (e.g. Additional peripherals include)
subfeature :: Sub Feature that will be a sub-bullet to feature. (e.g. Four I2C controllers)
14 15 16 |
# File 'lib/origen/specs/spec_features.rb', line 14 def type @type end |