lib/origen/specs/documentation.rb in origen-0.7.7 vs lib/origen/specs/documentation.rb in origen-0.7.8
- old
+ new
@@ -1,9 +1,12 @@
module Origen
module Specs
# This class is used to store documentation map that the user can change
class Documentation
+ # Level that Section is at. Allows for a key to be found.
+ attr_accessor :level
+
# This is the Section Header for the Documentation Map. Usually these are main headers
# Examples:
# I. Overall DC Electricals
# II. General AC Charactertistics
# III. Power Sequencing
@@ -41,9 +44,10 @@
# DITA Formatted Text that appears before the table
attr_accessor :link
# Initialize the Class
def initialize(header_info = {}, selection = {}, link = nil)
+ @level = header_info[:level]
@section = header_info[:section]
@subsection = header_info[:subsection]
@interface = selection[:interface]
@mode = selection[:mode]
@type = selection[:type]