public static singleTagValue(text as String, tag as String) as String
Extracts the first value of a single-occurrence tag (such as @return).
| Parameter | Description |
|---|---|
text | Cleaned documentation text. |
tag | Tag name including @ (e.g. "@return"). |
Tag value text, or "" if absent.
import klyn.code.klyn
assert KlynDocComment.singleTagValue("@return Computed total.", "@return") == "Computed total."