Class: RDoc::Context::Section

Inherits:
Object
  • Object
show all
Defined in:
lib/rdoc/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.



125
126
127
128
129
130
# File 'lib/rdoc/code_objects.rb', line 125

def initialize(title, comment)
  @title = title
  @@sequence.succ!
  @sequence = @@sequence.dup
  set_comment(comment)
end

Instance Attribute Details

#commentObject (readonly)

Returns the value of attribute comment



121
122
123
# File 'lib/rdoc/code_objects.rb', line 121

def comment
  @comment
end

#sequenceObject (readonly)

Returns the value of attribute sequence



121
122
123
# File 'lib/rdoc/code_objects.rb', line 121

def sequence
  @sequence
end

#titleObject (readonly)

Returns the value of attribute title



121
122
123
# File 'lib/rdoc/code_objects.rb', line 121

def title
  @title
end