In programming, a docblock or DocBlock is a specially formatted comment specified in source code that is used to document a specific segment of code. This makes the DocBlock format independent of the target language (as long as it supports comments); however, it may also lead to multiple or inconsistent standards.
See main article: Javadoc.
See main article: PHPDoc.
Args: a: First integer. b: Second integer.
Returns: Sum of the two integers. """ return a + b
See main article: JSDoc.
See main article: RDoc.
class Shape
## # Creates a new shape described by a +polyline+. # # If the +polyline+ does not end at the same point it started at the # first pointed is copied and placed at the end of the line. # # An ArgumentError is raised if the line crosses itself, but shapes may # be concave.
def initialize polyline # ... end
end