class Documentation
Structured access to a set of comment lines.
Definitions
def initialize(comments, language = nil)
Initialize the documentation with an array of comments, within a specific language.
Signature
-
parameter
comments
Array(String)
An array of comment lines.
-
parameter
language
Language
The language in which the comments were extracted.
Implementation
def initialize(comments, language = nil)
@comments = comments
@language = language
language.tags.parse(@comments.dup) do |node|
self.add(node)
end
end
attr :comments
The underlying comments from which the documentation is extracted.
Signature
-
attribute
Array(String)
attr :language
The language in which the documentation was extracted from.
Signature
-
attribute
Language::Generic