klyn.code.klyn.KlynDocComment.singleTagValue
method
public static singleTagValue(text as String, tag as String) as String
Description

Extracts the first value of a single-occurrence tag (such as @return).

Parameters
ParameterDescription
textCleaned documentation text.
tagTag name including @ (e.g. "@return").
Returns

Tag value text, or "" if absent.

Example
import klyn.code.klyn

assert KlynDocComment.singleTagValue("@return Computed total.", "@return") == "Computed total."