Flowdock
method

set_comment

Importance_0
v1_8_7_330 - Show latest stable - 0 notes - Class: RDoc::Context::Section
set_comment(comment) private

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# 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
Register or log in to add new notes.