Class: RDocF95::Context::Section

Inherits:
Object
  • Object
show all
Defined in:
lib/rdoc-f95/code_objects.rb

Constant Summary collapse

@@sequence =
"SEC00000"

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#commentObject (readonly)

Returns the value of attribute comment.



120
121
122
# File 'lib/rdoc-f95/code_objects.rb', line 120

def comment
  @comment
end

#sequenceObject (readonly)

Returns the value of attribute sequence.



120
121
122
# File 'lib/rdoc-f95/code_objects.rb', line 120

def sequence
  @sequence
end

#titleObject (readonly)

Returns the value of attribute title.



120
121
122
# File 'lib/rdoc-f95/code_objects.rb', line 120

def title
  @title
end