marshal_dump

marshal_dump() Instance Public methods Serializes this Section. The title and parsed comment are saved, but not the section parent which must be restored manually.

marshal_load

marshal_load(array) Instance Public methods De-serializes this Section. The section parent must be restored manually.

parse

parse() Instance Public methods Parses comment_location into an RDoc::Markup::Document composed of multiple RDoc::Markup::Documents with their file set.

plain_html

plain_html() Instance Public methods The section's title, or 'Top Section' if the title is nil. This is used by the table of contents template so the name is silly.

remove_comment

remove_comment(comment) Instance Public methods Removes a comment from this section if it is from the same file as comment

sequence

sequence() Instance Public methods Section sequence number (deprecated)

new

new() Class Public methods Creates an unnamed empty context with public current visibility

<=>

<=>(other) Instance Public methods Contexts are sorted by #full_name

add_alias

add_alias(an_alias) Instance Public methods Adds an_alias that is automatically resolved

add_attribute

add_attribute(attribute) Instance Public methods Adds attribute if not already there. If it is (as method(s) or attribute), updates the comment if it was empty. The attribute is registered only if it defines a new method. For instance, attr_reader :foo will not be registered if method foo exists, but attr_accessor :foo will be registered if method foo exists, but foo= does not.