Class: Origen::Specs::Creation_Info
- Defined in:
- lib/origen/specs/creation_info.rb
Overview
This class is used to store spec note information used to document IP
Instance Attribute Summary collapse
-
#author ⇒ Object
Returns the value of attribute author.
-
#date ⇒ Object
Returns the value of attribute date.
-
#revision ⇒ Object
Returns the value of attribute revision.
-
#source ⇒ Object
Returns the value of attribute source.
-
#tool ⇒ Object
Returns the value of attribute tool.
-
#tool_version ⇒ Object
Returns the value of attribute tool_version.
Instance Method Summary collapse
-
#initialize(author, date, src_info = {}, tool_info = {}) ⇒ Creation_Info
constructor
A new instance of Creation_Info.
Constructor Details
#initialize(author, date, src_info = {}, tool_info = {}) ⇒ Creation_Info
Returns a new instance of Creation_Info.
7 8 9 10 11 12 13 14 |
# File 'lib/origen/specs/creation_info.rb', line 7 def initialize(, date, src_info = {}, tool_info = {}) = @date = date @revision = src_info[:revision] @source = src_info[:source] @tool = tool_info[:tool] @tool_version = tool_info[:version] end |
Instance Attribute Details
#author ⇒ Object
Returns the value of attribute author.
5 6 7 |
# File 'lib/origen/specs/creation_info.rb', line 5 def end |
#date ⇒ Object
Returns the value of attribute date.
5 6 7 |
# File 'lib/origen/specs/creation_info.rb', line 5 def date @date end |
#revision ⇒ Object
Returns the value of attribute revision.
5 6 7 |
# File 'lib/origen/specs/creation_info.rb', line 5 def revision @revision end |
#source ⇒ Object
Returns the value of attribute source.
5 6 7 |
# File 'lib/origen/specs/creation_info.rb', line 5 def source @source end |
#tool ⇒ Object
Returns the value of attribute tool.
5 6 7 |
# File 'lib/origen/specs/creation_info.rb', line 5 def tool @tool end |
#tool_version ⇒ Object
Returns the value of attribute tool_version.
5 6 7 |
# File 'lib/origen/specs/creation_info.rb', line 5 def tool_version @tool_version end |