method
set_comment
v1_8_6_287 -
Show latest stable
- Class:
RDoc::Context::Section
set_comment(comment)private
No documentation available.
# File lib/rdoc/code_objects.rb, line 144
def set_comment(comment)
return unless comment
if comment =~ /^.*?:section:.*$/
start = $`
rest = $'
if start.empty?
@comment = rest
else
@comment = rest.sub(/#{start.chomp}\Z/, '')
end
else
@comment = comment
end
@comment = nil if @comment.empty?
end