Class: RDocF95::Context::Section
- Inherits:
-
Object
- Object
- RDocF95::Context::Section
- Defined in:
- lib/rdoc-f95/code_objects.rb
Constant Summary collapse
- @@sequence =
"SEC00000"
Instance Attribute Summary collapse
-
#comment ⇒ Object
readonly
Returns the value of attribute comment.
-
#sequence ⇒ Object
readonly
Returns the value of attribute sequence.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(title, comment) ⇒ Section
constructor
A new instance of Section.
Constructor Details
#initialize(title, comment) ⇒ Section
Returns a new instance of Section.
124 125 126 127 128 129 130 |
# File 'lib/rdoc-f95/code_objects.rb', line 124 def initialize(title, comment) @title = title @@sequence.succ! @sequence = @@sequence.dup @comment = nil set_comment(comment) end |
Instance Attribute Details
#comment ⇒ Object (readonly)
Returns the value of attribute comment.
120 121 122 |
# File 'lib/rdoc-f95/code_objects.rb', line 120 def comment @comment end |
#sequence ⇒ Object (readonly)
Returns the value of attribute sequence.
120 121 122 |
# File 'lib/rdoc-f95/code_objects.rb', line 120 def sequence @sequence end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
120 121 122 |
# File 'lib/rdoc-f95/code_objects.rb', line 120 def title @title end |